[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there already an alist function which gets all matching elements,
From: |
Lars Ingebrigtsen |
Subject: |
Re: Is there already an alist function which gets all matching elements, not just the first? |
Date: |
Wed, 05 Oct 2022 20:35:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Philip Kaludercic <philipk@posteo.net> writes:
> Perhaps a `map-member' could be implemented that would do something like
> what you are looking for? Or does this already exist by some other name
> (I don't really use map.el). I've certainly wanted something like this
> more than a few times.
There's `map-filter'... Hm... but it takes a predicate, which makes it
not as convenient as (say) `assq'.
So, yes, perhaps there should be a... `map-members'? `map-all-members'?