Hi, I am asking this question out of curiosity in regard to the homoiconic language features of Julia:
How would this scheme implementatation of *cons *and *car *look like in
Julia?
(define (cons x y)
(define (dispatch m)
(cond ((= m 0) x)
((= m 1) y)
(else (error "Argument not 0 or 1 -- CONS" m))))
dispatch)
(define (car z) (z 0))
Cheers!
