(rontolisp) docs
← Maps, sets and vectors

to-array-2d

(to-array-2d coll)

Answers an array holding one row per member of coll, each row the to-array of the member. coll is any collection of collections; nil is the oracle's NullPointerException, and a string, a map or anything else no collection its ClassCastException.

An array is a vector here, as one make-array makes: the answer is a vector of vectors, reading through aget, writing through aset, measuring through alength and copying through aclone (deviations). Runs on every backend; as a value a function of one argument.