I have a data in format of tuple :
{data, [[{a, 2}, {b, 3}], [{x, 1}, {v,2}], [1,2,3,4], "hello world", 1111]}
Since,
{data, [[{a, 2}, {b, 3}], [{x, 1}, {v,2}], [1,2,3,4], "hello world", 1111]} = {data, L}.
And need to check if the element of L
is a proplist, like here : [{a, 2}, {b, 3}]
and [{x, 1}, {v,2}]
are proplists.
Is there any function in erlang to check whether the list is proplist?
is_proplist(List)
should return true
or false