Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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: Returning an empty sequence

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63288] Re: Returning an empty sequence
  • From: "Norbert Marxer" <marxer at mec.li>
  • Date: Fri, 23 Dec 2005 05:08:16 -0500 (EST)
  • References: <dode3g$62d$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello Trevor

This works

f[n_] := Module[{s},
      Switch[n,
          1, "foo",
          2, s[ ],
          3, {"bar"}] /. s -> Sequence
      ];

Regards
Norbert Marxer


  • Prev by Date: Re: Converting Strings to Ints.
  • Next by Date: Carriage return leads to skipping of cells
  • Previous by thread: Re: Returning an empty sequence
  • Next by thread: RE: Returning an empty sequence