Mon Aug 21 09:30:12 CEST 2017
On 20 August 2017 at 23:46, Richard A. O'Keefe <ok@REDACTED> wrote:
> (1) lists: is absolutely the wrong place for them.
The thing I missed at first is this:
In Lukas's suggestion, these are *list of maps*, and we're searching
the *list* for the *map* with the specified K/V pair. If we're dealing
with *lists* (of maps), then the 'lists' module is, at first glance, a
reasonable place to put this functionality.
It's unclear whether that's what Max was asking for. Max?
But: I don't believe we need it *at all*. Let's just generalise the
whole thing with a predicate, and call it done. I'd like to see some
of ROK's suggestions ('one', 'first', etc.) -- because I came from C#,
which has 'Single', 'First', etc., and I kinda miss them.
More information about the erlang-questions