MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: 'Raw Expressions'

Thanks guys.  I'm too used to thinking of declaring variables and
strong types.  If I had an input that was constrained to have a head of
Integer (e.g. x_Integer), then Set[y, N[x]] would create a variable y
with a head of Real.


f[x_Integer] := Module[{y = N[x]}, Print[Head[x]];Head[y]]

I don't yet see the forest for the trees.


  • Prev by Date: Mathematica and version control systems
  • Next by Date: Re: Timing for a cell
  • Previous by thread: Re: 'Raw Expressions'
  • Next by thread: Zero-based indexing option?