~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/sasl/doc/src/rel/lists2.1.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-module(lists2).
 
2
-vsn(1).
 
3
 
 
4
-export([assoc/2]).
 
5
 
 
6
assoc(Key, [{Key, Val} | _]) -> {ok, Val};
 
7
assoc(Key, [H | T]) -> assoc(Key, T);
 
8
assoc(Key, []) -> false.