aboutsummaryrefslogblamecommitdiffstats
path: root/lib/sasl/doc/src/rel/lists2.1.erl
blob: 4afe3b5041dd09a5a4ad096b13236b52d7917191 (plain) (tree)
1
2
3
4
5
6
7
8







                                          
-module(lists2).
-vsn(1).

-export([assoc/2]).

assoc(Key, [{Key, Val} | _]) -> {ok, Val};
assoc(Key, [H | T]) -> assoc(Key, T);
assoc(Key, []) -> false.