[erlang-questions] distinguish proplists vs. lists of proplists

Mr rty ff <>
Tue Sep 15 18:58:33 CEST 2015


Hi

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.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150915/cd109c37/attachment.html>


More information about the erlang-questions mailing list