Re: How to remove the Null character in a Table?
- To: mathgroup at smc.vnet.net
- Subject: [mg124370] Re: How to remove the Null character in a Table?
- From: Adriano Pascoletti <adriano.pascoletti at uniud.it>
- Date: Tue, 17 Jan 2012 05:58:57 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201201162211.RAA15417@smc.vnet.net>
In[10]:= Table[If[i < 3, i, Sequence @@ {}], {i, 5}] Out[10]= {1, 2} Adriano Pascoletti 2012/1/16 Rex <aoirex at gmail.com> > For example, > > Table[If[i < 3, i,], {i, 5}] > will give > {1, 2, Null, Null, Null} > > But I want the result to be {1,2}. > > Any trick for this? > >
- References:
- How to remove the Null character in a Table?
- From: Rex <aoirex@gmail.com>
- How to remove the Null character in a Table?