Re: Returning an empty sequence
- To: mathgroup at smc.vnet.net
- Subject: [mg63297] Re: Returning an empty sequence
- From: David Bailey <dave at Remove_Thisdbailey.co.uk>
- Date: Fri, 23 Dec 2005 05:08:23 -0500 (EST)
- References: <dode3g$62d$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hello, Try this definition: f[n_]:=Switch[n,1,"foo",2,Sequence@@{},3,{"bar"}]; David Bailey http://www.dbaileyconsultancy.co.uk