user-defined operators

Luke Gorrie <>
Thu Mar 25 19:52:53 CET 2004


Eric Newhuis <> 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