Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: 'Raw Expressions'

  • To: mathgroup at
  • Subject: [mg61678] Re: 'Raw Expressions'
  • From: "Matt" <anonmous69 at>
  • Date: Wed, 26 Oct 2005 01:01:33 -0400 (EDT)
  • References: <djht17$sjt$><djk1p1$gto$>
  • Sender: owner-wri-mathgroup at

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?