Re: Returning an empty sequence
- To: mathgroup at smc.vnet.net
- Subject: [mg63309] Re: Returning an empty sequence
- From: "dkr" <dkrjeg at adelphia.net>
- Date: Fri, 23 Dec 2005 05:08:33 -0500 (EST)
- References: <dode3g$62d$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Trevor, Try In[13]:= f[n_]:=Switch[n,1,"foo",2,Hold[Sequence[]],3,{"bar"}]//ReleaseHold In[14]:= f[2] Out[14]= Sequence[] dkr