If the input "sequence" is an array, what would the output "sequence" be -- an array or list?Quote from: "rickyboy"
For
A multi-dimensional array can be seen as an array of arrays: then map would just map first dimension.
This seems to be the semantics of array; at least it's possible to replace elements of first dim by both lists and arrays, without changing the type of the array:
Code Select > (setq a (array 2 5 (sequence 0 9)))
((0 1 2 3 4) (5 6 7 8 9))
> (setq (a 0) (sequence 10 14))
(10 11 12 13 14)
> (setq (a 1) (array 5 (sequence 15 19)))
(15 16 17 18 19)
> (array? (a 0))
nil
> (array? (a 1))
true
>> (array? a)
true
>In case of mapping all lowest-level elements - e.g. pixels in an image -