On Fri, Nov 19, 2010 at 8:52 PM, Bob Shock <shock...@gmail.com> wrote: > I had a bug in my code where I meant to type: > > (get map key) > > and instead typed: > > (get max key) > > It seems that any function name I put in for "max" always returns nil. > > user=> (get max 3) > nil > user=> (get min 3) > nil > user=> (get maxx 3) > java.lang.Exception: Unable to resolve symbol: maxx in this context > (NO_SOURCE_FILE:10) > user=> > > Any ideas?
Get seems to never throw. If the first argument's not an associative it returns nil: uni.io=> (get 1 :foo) nil uni.io=> (get nil :foo) nil uni.io=> (get :q :foo) nil uni.io=> (get "bar" :foo) nil uni.io=> (get (Object.) :foo) nil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en