[erlang-questions] distinguish proplists vs. lists of proplists
Tue Sep 15 23:39:25 CEST 2015
You maybe could use lists:flatten on your entry, do that you will always have a one level depth proplist.
Le 15 sept. 2015 18:58, Mr rty ff <> a écrit :
> I write a function which gets proplists or list of proplists anf key. if the input is proplists I just use proplists:get_value to find a value corresponding to key. But if the input is lists of proplists I need to iterate over all its elements. and look for key in each of them. I amnot sure how to distinguish lists vs. proplists. lists:is_list returns true for both of them.
More information about the erlang-questions