1function out = containers_map_lookup_ik(map,key,fallback)
2%CONTAINERS_MAP_LOOKUP this function simulates the missing
3%containers.Map.lookup() function using the isKey function
4%(supposingly much faster on Octave than exception-try-catch)
5 if map.isKey(key)
6 out=map(key);
7 else
8 out=fallback;
9 end
10end