Date: Apr 13, 2014 5:27 AM
Author: Murray Eisenberg
Subject: Re: List vs. array in Mathematica
The function Array does _not_ necessarily a list of uniform depth. For example:

f[n_] := Nest[List, x, n]

Array[f, 5]

(* {{x}, {{x}}, {{{x}}}, {{{{x}}}}, {{{{{x}}}}}} *)

However, the function ArrayQ does not return True for a "ragged" array but only she "all parts at a particular level must be lists of the same length.

On Apr 12, 2014, at 5:14 AM, andymhancock@gmail.com wrote:

> In mathematica, is an array simply a list of uniform depth? Both terms are used in the documentation, but I haven't run across an explicit explanation of why two terms are needed for the same construct. So I'm wondering if their relationship is.

>

Murray Eisenberg murray@math.umass.edu

Mathematics & Statistics Dept.

Lederle Graduate Research Tower phone 240 246-7240 (H)

University of Massachusetts

710 North Pleasant Street

Amherst, MA 01003-9305