Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Function argument types

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112958] Re: Function argument types
  • From: "Carl K. Woll" <carlw at wolfram.com>
  • Date: Thu, 7 Oct 2010 03:38:53 -0400 (EDT)

On 10/6/2010 2:16 AM, Sam Takoy wrote:
> Hi,
>
> I can't see to find the answer to this basic question:
>
> What's the difference between
>
> f[n_?Integer]:=
>
> and
>
> f[n_Integer]:=
>
> I would be happy to read more about this, but what's the keyword?
>
> Thanks,
>
> Pavel
>
>    

Do

FullForm[n_?Integer]

and

FullForm[n_Integer]

and read up about the different symbols. In this case, the relevant 
things to look up is PatternTest and Integer.

Carl Woll
Wolfram Research


  • Prev by Date: Superscripts in strings change color to gray
  • Next by Date: Re: used by LogLogPlot?
  • Previous by thread: Function argument types
  • Next by thread: Re: Function argument types