Could anyone advice me how to make colored output in REPL (in Linux)?
Also I thought it would be good to have something like:
Code: Select all
> (help curry)
Syntax: (curry func exp)
Transforms func from a function f(x, y) that takes two arguments into a function fx(y) that takes a single argument. curry can be used on all functions taking two arguments.
Examples:
(set 'f (curry + 10)) → (lambda () (+ 10 (args 0)))
(map (curry list 'x) (sequence 1 5)) → ((x 1) (x 2) (x 3) (x 4) (x 5))
(define (my-func)
"...help information..."
....
or
# formatted help information
(define (my-func)
...