Anthony Grimes made a find-fn <https://github.com/Raynes/findfn> that finds functions based on input parameters and output functions.
So something like (find-fn clojure.core [1 2] {:a 1 :b 2}) would return vals and (find-fn clojure.core [:a :b] {:a 1 :b 2}) would return keys. It would be great if we would have an online version that could do that. The biggest problem would be how to specify which namespaces (from clojars available libraries ?) you'd want to have searched. On Tuesday, December 24, 2013 2:58:29 PM UTC+1, John Kida wrote: > > So i am very new to Clojure and I am wondering if there are any good > techniques to finding available methods that will take a particular value. > I understand this is probably very hard to do or even impossible being > Clojure is a dynamic language and a lisp but for example. > > Lets say i have a simple map data structure. Being new to Clojure i just > start fiddling with the REPL, and try: > (keys my-hmap) > cool, got the keys from my map back. > > Now how about values > (values my-hmap) > > nope. wrong method name.. I was able to quickly find it in the Clojure > Data Structures documentation, where it had a few method names for > examining a Map, and linked me to the Clojure Core API, is this something I > should probably go through start to finish, so I have a good idea of what > is available. > > Or is there some technique I can use in the repl to tell me what methods > are available to work with this particular datastructure.. that sounds not > possible due to the dynamic lisp nature of clojure, but I wanted to ask the > community to see if there were some good strategies to learning and finding > available methods to work with a particular value. > -- -- 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/groups/opt_out.