<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><h1 itemprop="name" style="margin-top: 0px; margin-bottom: 0.5em; border: 0px; font-size: 22px; line-height: 1.3; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;" id="yui_3_16_0_1_1442336161267_6069" class=""><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" class="">Hi</span></h1><h1 itemprop="name" style="margin-top: 0px; margin-bottom: 0.5em; border: 0px; font-size: 22px; line-height: 1.3; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;" id="yui_3_16_0_1_1442336161267_6069" class=""><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6148" class="">I write a function which gets </span><code style="margin-top: 0px; margin-bottom: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; font-weight: normal; background-color: rgb(238, 238, 238);" id="yui_3_16_0_1_1442336161267_6150" class="">proplists</code><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6152" class=""> or </span><code style="margin-top: 0px; margin-bottom: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; font-weight: normal; background-color: rgb(238, 238, 238);" id="yui_3_16_0_1_1442336161267_6154" class="">list</code><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6156" class=""> of proplists anf key. if the input is proplists I just use </span><code style="margin-top: 0px; margin-bottom: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; font-weight: normal; background-color: rgb(238, 238, 238);" id="yui_3_16_0_1_1442336161267_6158" class="">proplists:get_value</code><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6160" class=""> 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 </span><code style="margin-top: 0px; margin-bottom: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; font-weight: normal; background-color: rgb(238, 238, 238);" id="yui_3_16_0_1_1442336161267_6162" class="">lists</code><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6164" class=""> vs. </span><code style="margin-top: 0px; margin-bottom: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; font-weight: normal; background-color: rgb(238, 238, 238);" id="yui_3_16_0_1_1442336161267_6166" class="">proplists</code><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6168" class="">. </span><code style="margin-top: 0px; margin-bottom: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; font-weight: normal; background-color: rgb(238, 238, 238);" id="yui_3_16_0_1_1442336161267_6170" class="">lists:is_list</code><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6172" class=""> returns </span><code style="margin-top: 0px; margin-bottom: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; font-weight: normal; background-color: rgb(238, 238, 238);" id="yui_3_16_0_1_1442336161267_6174" class="">true</code><span style="font-size: 15px; font-weight: normal; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6176" class=""> for both of them.</span><br></h1><div id="yui_3_16_0_1_1442336161267_6194"><span style="font-size: 15px; line-height: 19.5px;" id="yui_3_16_0_1_1442336161267_6193">Thanks</span></div></div></body></html>