|
|
|
|
|
by ginsider_oaks
895 days ago
|
|
list languages and array languages are quite different.
in LISP, the lists are heterogeneous i.e. each element can contain different types, which is also how you can e.g. make a tree out of lists in LISP.
typically in array languages all elements are the same, and you use operations that apply to the whole array e.g. one operation for summing the array rather than a loop. |
|
a cool example is April (Array Programming Re-Imagined in Lisp), which runs on top of Common Lisp...
https://github.com/phantomics/april
One can see that the Lisp macro APRIL-F compiles APL-like code to Lisp.
we can run that: It has created a Lisp vector of complex numbers.