I'm using the embedded key/value database Tokyo Cabinet on a project. We have functions that use the database and some of the them are very similar to the core clojure functions that access a map.
For example, the Tokyo Cabinet functions db-count, db-seq, and db-get correspond nicely to count, seq, and get. What's the best way to augment the function named count (.et.al.) to provide the same functionality as db-count ? It seems like I should be able to use multimethods, but don't see how that would work. I suppose I could write a Java wrapper class that implements the proper interfaces. Either using plain old Java or the Clojure proxy/gen-class functions. Cheers, Chris Dean --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---