Macros to turn @arr[1] into (vector-ref @arr 1)) are left as an exercise to the reader.(define print display) (define $scalar 9) (define @arr #(4 3 2)) (define %hash '((a . 1) (b . 2))) (define (main args) (print (+ $scalar (vector-ref @arr 1))) (newline) (print (assoc 'b %hash)))
In reply to Re^6: pissed off about functional programming
by Anonymous Monk
in thread pissed off about functional programming
by mstone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |