• Re: Newbie Question: how to use Assoc and pair together.

    From B. Pym@Nobody447095@here-nor-there.org to comp.lang.lisp,comp.lang.scheme on Sun Sep 7 16:28:35 2025
    From Newsgroup: comp.lang.scheme

    (mapcar (lambda (x) (+ 5 x)) '(1 2 3))

    Gauche Scheme

    (map (%. (+ 5 _)) '(2 3 4))

    ===>
    (7 8 9)

    Given:

    (define-macro %.
    (lambda (x . z)
    `(lambda(_) ,x ,@z)))
    --- Synchronet 3.21a-Linux NewsLink 1.2