bldc/tests/test_map_8.lisp

8 lines
148 B
Common Lisp

(defun f (x) (+ x 1))
(define ls (list (list (list 1 2 3) (range 2 5))))
(define rs '(((2 3 4) (3 4 5))))
(check (eq (map (map (map f)) ls) rs))