MathGroup Archive 2005

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

Search the Archive

Re: Returning an empty sequence


Hello,

Try this definition:

f[n_]:=Switch[n,1,"foo",2,Sequence@@{},3,{"bar"}];

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: Returning an empty sequence
  • Next by Date: Re: Converting Strings to Ints.
  • Previous by thread: Re: Returning an empty sequence
  • Next by thread: Re: Returning an empty sequence