aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/doc/src/rel/bar.1.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sasl/doc/src/rel/bar.1.erl')
-rw-r--r--lib/sasl/doc/src/rel/bar.1.erl17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/sasl/doc/src/rel/bar.1.erl b/lib/sasl/doc/src/rel/bar.1.erl
new file mode 100644
index 0000000000..610fc4919e
--- /dev/null
+++ b/lib/sasl/doc/src/rel/bar.1.erl
@@ -0,0 +1,17 @@
+-module(bar).
+-vsn(1).
+
+-export([simple/1, complicated_sum/1]).
+
+simple(X) ->
+ case lists2:assoc(simple, X) of
+ {ok, Val} -> Val;
+ false -> false
+ end.
+
+complicated_sum([X, Y, Z]) -> cs(X, Y, Z).
+
+cs([HX | TX], [HY | TY], [HZ | TZ]) ->
+ NewRes = cs(TX, TY, TZ),
+ [HX + HY + HZ | NewRes];
+cs([], [], []) -> [].