[erlang-questions] Erlang/OTP 21.0-rc1 (Release Candidate)

Frans Schneider fchschneider@REDACTED
Wed May 2 15:06:36 CEST 2018


Is the fun/1 really the second argument in the call lists:search/2?

lists:search(list,fun/1) -> {ok, Value} | false

Doesn't feel consistent with the other functions in the list module 
which have the fun/1 as the first argument.

Cheers,

Frans

On 05/02/2018 01:37 PM, Henrik Nord X wrote:
> lists:search(list,fun/1) -> {ok, Value} | false



More information about the erlang-questions mailing list