MathGroup Archive 1999

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

Search the Archive

Checking the form of an option

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20982] Checking the form of an option
  • From: "DIAMOND Mark" <noname at noname.com>
  • Date: Wed, 1 Dec 1999 01:50:54 -0500 (EST)
  • Organization: The University of Western Australia
  • Sender: owner-wri-mathgroup at wolfram.com

I want to check whether option "K" to a function is an integer, a list of
single numbers, or neither of these, and then to execute one of three
different statements.

If these K were a simple parameter, I could do it with
f[k_Integer] := functionBody;
f[k:{_Integer}..] := functionBody;
f[k_] := functionBody

but I cannot see how to check for similar conditions on an *option* inside
one function. Can anyone help?







  • Prev by Date: RE: (A)/Periodic convex tillings (or near-tillings) of the plane or (3 space)
  • Next by Date: Laplace transforms in version 4
  • Previous by thread: RE: (A)/Periodic convex tillings (or near-tillings) of the plane or (3 space)
  • Next by thread: RE: Checking the form of an option