1-module(bar).
2-vsn(1).
3
4-export([simple/1, complicated_sum/1]).
5
6simple(X) ->
7    case lists2:assoc(simple, X) of
8	{ok, Val} -> Val;
9	false -> false
10    end.
11
12complicated_sum([X, Y, Z]) -> cs(X, Y, Z).
13
14cs([HX | TX], [HY | TY], [HZ | TZ]) ->
15    NewRes = cs(TX, TY, TZ),
16    [HX + HY + HZ | NewRes];
17cs([], [], []) -> [].
18