• .Re: getting list of keys

    From Robert L.@21:1/5 to All on Sat Feb 19 06:19:07 2022
    an `update' function for the mp3 database.
    I need a function for doing something like this with a list:

    * (xxxx (list :artist "something" :song "sss"))
    (:artist :song)

    Thanks in advance, and sorry for my bad english.
    --
    Pablo.

    CL-USER> (loop :for (x y) :on (list :artist "something" :song "sss") :by #'cddr
    :collect x)
    (:ARTIST :SONG)

    Gauche Scheme and Racket using unfold from SRFI-1.

    (use srfi-1) ;; unfold for Gauche
    or
    (require srfi/1) ;; unfold for Racket

    (unfold null? car cddr '(:artist "something" :song "sss"))
    ===>
    (:artist :song)

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