[erlang-questions] lists:keyfind as an alternative to lists:keysearch

Dominic Williams erlang@REDACTED
Tue Jan 20 21:15:43 CET 2009


Mikael Pettersson a écrit :
> James Hague writes:
> 
> [•••]
> 
>> I would like to propose the addition of
>> lists:keyfind/3, which is identical in structure to
>> lists:keysearch/3, except that it returns either
>> 'false' or the found tuple, with no additional wrapping
>> of the result.  This can be trivially added to the
>> lists module:
> 
> [...]
> 
> I totally agree with this suggestion.

+1

Regards,
Dominic Williams



More information about the erlang-questions mailing list