Very cool! I wonder how hard it would be to have it suggest compositions if it can not find a direct match?
On Thu, Sep 5, 2013 at 10:34 PM, Mayank Jain <firesof...@gmail.com> wrote: > Looks pretty interesting. Thanks for sharing > > > On Fri, Sep 6, 2013 at 2:53 AM, Islon Scherer <islonsche...@gmail.com>wrote: > >> Hey guys, >> >> I don't know about you but when I was a beginner in Clojure (and it still >> happens every now and then) I had a hard time finding functions using `doc` >> or `find-doc`, >> normally because I didn't remember the name of the function or because my >> only clue was a generic name so find-doc would return too much results. But >> one >> thing I knew: what to expect of the function, I knew the inputs and the >> outputs. That's why I decided to create wally, because sometimes you don't >> know the name of the function you want but you know how it should behave. >> >> With wally you can tell the inputs and the output and it'll search for >> functions that match those inputs/outputs. >> >> Ex: >> >> user=> (find-by-sample {1 1, 2 3, 3 1, 4 2} [1 2 3 4 4 2 >> 2])-------------------------clojure.core/frequencies([coll]) >>> Returns a map from distinct items in coll to the number of times >>> they appear. >>> >>> >> user=> (find-by-sample '((1 2 3) (4 5)) (partial < 3) [1 2 3 4 5]) >>> ------------------------- >>> clojure.core/partition-by >>> ([f coll]) >>> Applies f to each value in coll, splitting it each time f returns >>> a new value. Returns a lazy seq of partitions. >>> >> >> https://github.com/stackoverflow/wally >> >> -- >> -- >> 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. >> > > > > -- > Regards, > Mayank. > > -- > -- > 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. > -- -- 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.