user-defined operators

Luke Gorrie <>
Thu Mar 25 18:56:20 CET 2004


Eric Newhuis <> writes:

> For example, Erlang's "foreach" idiom is too verbose.  One spends more
> time looking at code structure rather than intentions.
>
> Consider the following Erlang code:
>
> 	lists:foreach (F, SomeList).

Better is:

  foreach(F, List)

I tend to '-import' any well-known functions that I use from 'lists'.




More information about the erlang-questions mailing list