Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: ListDimension function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72615] Re: ListDimension function
  • From: "Ray Koopman" <koopman at sfu.ca>
  • Date: Fri, 12 Jan 2007 05:45:44 -0500 (EST)
  • References: <eo25ue$as5$1@smc.vnet.net><eo4nl2$m7m$1@smc.vnet.net>

Ray Koopman wrote:
> I'm not at a machine where I can try this, but how about something
> like:
>
>   ListDim[x_?AtomQ] := 0;
>   ListDim[x_] := Boole[Head@x == List] + Max[ListDim /@ x]
 
It's a disaster! Please don't waste any time on it.


  • Prev by Date: Integration using mathematica
  • Next by Date: Re: If & NIntegrate
  • Previous by thread: Re: ListDimension function
  • Next by thread: Re: help