On Wednesday, March 1, 2017 at 3:21:51 AM UTC+1, Mikera wrote: > > You might want to try implementing a small wrapper class that implements > ILookup. > > Then you can do something like: > > (:keyword (MyWrapper. my-obj)) >
Yeah, but to be more convenient, it would need to return a wrapper in case the value is again a map, and the object has more methods that I could be interested in using, so the wrapper would need to expose that interface as well... Not sure if it pays off. Thank you! -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.