|
|
|
|
|
by sctb
2892 days ago
|
|
To me, one of the most fundamental features of Arc is taking the unification of code and data much further. I don't know of other Lisps that do this! K is another language that does. arc> (= l '(1 2 3))
(1 2 3)
arc> (= f [+ _ 1])
#<fn: f>
arc> (map l '(0 1 2))
(1 2 3)
arc> (map f '(0 1 2))
(1 2 3)
|
|
For the benefit of people familiar with Common Lisp:
I think your example would have been less confusing if it used larger numbers to highlight where addition was happening and where indexing was happening: