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.