user-defined operators

Luke Gorrie luke@REDACTED
Thu Mar 25 19:52:53 CET 2004


Eric Newhuis <enewhuis@REDACTED> writes:

> K:
> +/1 2 3 4 5
>
> Erlang:
> lists:foldl (fun (X, A) -> X + A end, 0, [1, 2, 3, 4]).

  Or:
  foldl({erlang,'+'}, 0, [1,2,3,4]).




More information about the erlang-questions mailing list