All Projects → fredokun → lisp-list-comprehensions

fredokun / lisp-list-comprehensions

Licence: other
Two macros for list comprehensions in lisp

Programming Languages

common lisp
692 projects
shell
77523 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].