MathGroup Archive 2012

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

Search the Archive

Re: How to remove the Null character in a Table?


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?
>
>




  • Prev by Date: Re: opposite of AppendTo
  • Next by Date: Re: How to remove the Null character in a Table?
  • Previous by thread: Re: How to remove the Null character in a Table?
  • Next by thread: Re: How to remove the Null character in a Table?