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).