MathGroup Archive 2005

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

Search the Archive

Re: Returning an empty sequence


Trevor,

Try

In[13]:=
f[n_]:=Switch[n,1,"foo",2,Hold[Sequence[]],3,{"bar"}]//ReleaseHold
In[14]:=
f[2]
Out[14]=
Sequence[]

dkr


  • Prev by Date: Re: Returning an empty sequence
  • Next by Date: Re: Returning an empty sequence
  • Previous by thread: Re: Returning an empty sequence
  • Next by thread: Re: Returning an empty sequence