diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-03-21 15:58:12 +0100 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-03-21 15:58:12 +0100 |
commit | bd51eb6016fc88304785282e1d9eb87628e6009a (patch) | |
tree | 4cad095951ea4543c18ff907709ab2ec4df372a3 | |
parent | 4e204c4e6d3fe1254834d7b11eb635697813b3fc (diff) |
MapLookup.m: Allow strings as keys in lookup
-rw-r--r-- | Tools/MathematicaMisc/MapLookup.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/MathematicaMisc/MapLookup.m b/Tools/MathematicaMisc/MapLookup.m index b125996..f42a1c7 100644 --- a/Tools/MathematicaMisc/MapLookup.m +++ b/Tools/MathematicaMisc/MapLookup.m @@ -32,7 +32,7 @@ DefFn[ lookup[map_List, key_Symbol, default_] := lookupDefault[map, key, default]]; -DefFn[lookup[map_List, key_Symbol] := +DefFn[lookup[map_List, key:(_Symbol|_String)] := Module[{values}, VerifyMap[map]; |