[erlang-questions] Any wisdom to offer on "tagged return values"

Kostis Sagonas kostis@REDACTED
Fri May 1 23:30:17 CEST 2009


Kevin wrote:
> ...
> Ironically in the lists man page it says keysearch is deprecated in 
> favor of keyfind, which does exactly what the programming rules
> cautions against.
> 
> keyfind(Key, N, TupleList) -> Tuple | false

There is nothing ironic or wrong here.  Tuple is a tuple, not an atom so 
the two cases cannot be confused.

Kostis



More information about the erlang-questions mailing list