Skip to content

Commit

Permalink
MapLookup.m: Allow strings as keys in lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Mar 21, 2012
1 parent 4e204c4 commit bd51eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/MathematicaMisc/MapLookup.m
Expand Up @@ -32,7 +32,7 @@
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];

Expand Down

0 comments on commit bd51eb6

Please sign in to comment.