lookup package:relude

Return the value to which the specified key is mapped, or the default value if this map contains no mapping for the key.
>>> let myHashMap = HashMap.fromList [('a', "xxx"), ('b', "yyy")]

>>> lookupDefault "zzz" 'b' myHashMap
"yyy"
>>> lookupDefault "zzz" 'c' myHashMap
"zzz"
Lifted version of lookupEnv.