MathGroup Archive 2005

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

Search the Archive

Re: Returning an empty sequence


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