Sujet : Re: help me with this function
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lispDate : 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/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca