Lutz,
Can we have a built-in function to give us the type of a value? Using cond with various predicates is *really* slow. Then we can do nice things like building type-case macros.
Thanks,
Jeff
Does this simple function (without 'cond' and predicates) would not be sufficient?
(define (type x)
; returns the type of data
(let (types '("boolean" "boolean" "integer" "float"
"string" "symbol" "context"
"primitive" "primitive" "primitive"
"quote" "list" "lambda" "macro" "array"))
(types (& 0xf ((dump x) 1)))))
I don't know any more where I found it...
That works wonderfully. Thank you!