proplists の使い勝手がいい

lists を色々使っていたのですが、keysearch とかどうも使い勝手が悪いなぁと。
proplistsが使い勝手イイです。とりあえず自分用にメモ。

Eshell V5.6.5  (abort with ^G)
1> List = [{1,"a"}, {1,"b"}, {{1,2},"c"}, {2,"d"}].
[{1,"a"},{1,"b"},{{1,2},"c"},{2,"d"}]
2> proplists:get_value(1, List).
"a"
3> proplists:get_value(3, List).
undefined
4> proplists:get_value(1, List, "z").
"a"
5> proplists:get_value(3, List, "z").
"z"
6> proplists:lookup(1, List).
{1,"a"}
7> proplists:lookup_all(1, List).
[{1,"a"},{1,"b"}]
8> proplists:is_defined(1, List).
true
9> proplists:get_keys(List).
[2,1,{1,2}]
10> proplists:get_value({1,2}, List).
"c"