Learning Arc I've found myself going back to "arc.arc" a lot to see how a function or macro is defined. I was wondering if there's a way to check such definitions from the REPL. For example, say I'm trying to figure out the 'map1 function. Entering the symbol name tells me it's a procedure, but not what it does or how it works: arc> map1
#<procedure: map1>
I'd like a hypothetical function (calling it 'defex here) that could print the definition of 'map1 as it is in "arc.arc", something like: arc> (defex map1)
(def map1 (f xs)
(if (no xs)
nil
(cons (f (car xs)) (map1 f (cdr xs)))))
Is there such a thing available or another way to address my problem? Thanks. |