Hi,<br><br>I&#39;m looking for a function for Data.Map that will insert a new key and value into the map if the key doesn&#39;t already exist in the map.&nbsp; When the key already exists, I don&#39;t want the value updated in the map.&nbsp; Additionally, I want to know whether the key/value was inserted or not so that I can return that fact as a boolean from my function.<br>
<br>I can&#39;t work out which function in Data.Map is suitable for this task and I wanted to avoid two lookups.<br><br>Thanks,<br><br>-John<br><br>