• Re: Lis(t|p) comprehensions

    From B. Pym@21:1/5 to All on Sun Sep 8 21:50:31 2024
    XPost: comp.lang.scheme

    CL-USER> [x (x <- '(1 2 3)) (oddp x)]
    (1 3)

    CL-USER> (loop for x in (list 1 2 3) when (oddp x) collect x)
    (1 3)

    LOOP does some kind of list comprehension aswell, without an additional software.

    Scheme:

    (filter odd? '(3 4 5))

    (3 5)

    Does using CL cripple the brain, or does having a crippled brain
    cause one to use CL?

    If Lisp is to live, CL must die.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)