Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

function to check if array is empty

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88313] function to check if array is empty
  • From: will parr <willpowers69 at hotmail.com>
  • Date: Thu, 1 May 2008 03:22:23 -0400 (EDT)

Dear Math Forum,

this probably already exists, but I can't find it anywhere:

is there a function that will check if an array is empty? 

i'm looking for a function to return either True (or 1), or False (or 0) when it checks an array. eg: 

X = Array[0 &, {3, 3}]

then test with function (called ArrayEmpty, for example)

In: ArrayEmpty[X]

Out: True

best wishes,

Will


  • Prev by Date: Re: Complex Plot
  • Next by Date: For help about NSolve
  • Previous by thread: Re: Re: Complex Plot
  • Next by thread: Re: function to check if array is empty