Re: help me with this function

Liste des GroupesRevenir à cl lisp 
Sujet : Re: help me with this function
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lisp
Date : 02. Jul 2024, 12:24:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240702025737.299@kylheku.com>
References : 1
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-07-02, B. Pym <No_spamming@noWhere_7073.org> wrote:
i'm trying to write a function that takes two arguments - one is
an ato the other is a list of lists - for each list within the
list, if the atom matches its first memeber, i want it's second
member to be added to a master list and finally returned- for
example:
 
(setq mylist '((a b)(a c)(a d)))
(myfunc 'a lst)
 
and myfunc would return
 
(b c d)

1> (match @(coll (a @x)) '((a b) (a c) (a d) (x 0) (a e)) x)
(b c d e)

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Date Sujet#  Auteur
2 Jul 24 * Re: help me with this function3B. Pym
2 Jul 24 +- Re: help me with this function1Kaz Kylheku
3 Jul 24 `- Re: help me with this function1Paul Rubin

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal