Skip to content

fredokun/lisp-list-comprehensions

Repository files navigation

List comprehensions in Lisp (tutorial)

(list-of (cons i j)
    for i in '(1 2 3 4 5 6 7 8)
    for j in '(A B)
    when (evenp i))
=> ((2 . A) (2 . B) (4 . A) (4 . B) (6 . A) (6 . B) (8 . A) (8 . B))

(C) 2015 Frederic Peschanski - CC BY SA 3.0

About

Two macros for list comprehensions in lisp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published