aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/doc/src/rel/bar.2.erl
blob: a831316874ce32606fc7c0b9ba70aefc86dd977f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
-module(bar).
-vsn(2).

-export([simple/1, complicated_sum/1]).

simple(X) ->
    case lists2:assoc(simple, X) of
	{ok, Val} -> Val;
	false -> false
    end.

complicated_sum(X) ->
    lists2:multi_map(fun(A,B,C) -> A+B+C end, X).