MathGroup Archive 2012

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

Search the Archive

How to remove the Null character in a Table?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124305] How to remove the Null character in a Table?
  • From: Rex <aoirex at gmail.com>
  • Date: Mon, 16 Jan 2012 17:11:34 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.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: How to check whether an infinite set is closed under addition?
  • Next by Date: CUDATotal
  • Previous by thread: Re: Question about DeleteCases to remove list elements based on first character
  • Next by thread: Re: How to remove the Null character in a Table?