| I've only just begun to play with Arc, so this might either be nonsense because of feature conflict or because there is a better method, but I want to see this: arc> ([+] 1 2 3 4 5)
15
arc> ([in 'a] 'a 'b 'c 'd 'e)
t
arc> ([- _ 4] 5 3)
-2
I.e. the last one translates to (- 5 4 3).The only other language I've used which implement function shorthand like that was Haskell, which obviously doesn't have this opportunity because of its type system, but I think it's a logical default behavior. With Arc's assumption of the Smart Programmer this default behavior is more useful than the error message. |