In the 4D case and in the cases below (plus PHP), I suspect a collection is really just an "object" (hash table) with numeric keys instead of string keys. For example, if I write
$collection := New collection() $collection[247] := "fred" I doubt that it creates 247 (indexes 0-246) empty elements in the collection. Would love to hear confirmation or denial from some one at 4D that knows the internals. John DeSoi, Ph.D. > On Mar 21, 2018, at 4:19 PM, Lee Hinde via 4D_Tech <[email protected]> > wrote: > > Please. You mean like an array in almost any other language: > > python: > x = ["fred", 2, {"test":4}] > > javascript: > var x = ["fred", 2, {"test":4}]; ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

