3 ms·
Yeah, I could do similar open testing: (def is-type (proc (x t) (eq? (type x) t))) (is-type 5 'int) But it's nice to have single-parameter ones for F
by frou_dh 12y ago
Yeah, I could do similar open testing:
(def is-type (proc (x t) (eq? (type x) t)))
(is-type 5 'int)
But it's nice to have single-parameter ones for FP list stuff. I suppose that 2-parameter version could have their order swapped and do partial application on top of it.
Anyway, was just sharing something I had fun making. No language wars intended.