[ANN] Retrieve the source body of bound symbols

2013-05-19 Thread Kelker Ryan
There's now a library that allows you to retrieve the source body of bound symbols.https://github.com/runexec/concrete#concrete- -- -- 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

Re: Screencast: Clojure development with Sublime Text 2

2013-05-19 Thread Glen Mailer
I've been using sublime-paredit for a while, and the dodgy closing bracket behaviour has been bugging me - so it was nice to spot a fix in your key bindings file. Would you be able to submit this back upstream to the author? Cheers Glen On Saturday, 18 May 2013 21:36:21 UTC+1, James MacAulay

Re: Screencast: Clojure development with Sublime Text 2

2013-05-19 Thread Jim - FooBar();
ooo thanks a lot :) quick question...how did you tell sublime to use lein2 instead of lein ? Jim On 18/05/13 21:36, James MacAulay wrote: This is a little show-and-tell I recorded today: http://www.youtube.com/watch?v=wBl0rYXQdGg Hopefully it's useful for some of you. Feedback welcome!

Re: find first match in a sequence

2013-05-19 Thread Thumbnail
... or just (comp first filter) ((comp first filter) odd? [2 4 6 7 8 9]) = 7 -- -- 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 -

Re: find first match in a sequence

2013-05-19 Thread Jim - FooBar();
no need to traverse the entire seq with 'filter' if you only want the 1st match... (some #(when (odd? %) %) [2 4 6 7 8 9]) = 7 Jim On 19/05/13 13:42, Thumbnail wrote: ... or just (comp first filter) ((comp first filter) odd? [2 4 6 7 8 9]) = 7 -- -- You received this message

Re: find first match in a sequence

2013-05-19 Thread Kelker Ryan
Try this user (first (drop-while even? [2 4 6 7 8 10])) 7 19.05.2013, 23:06, Jim - FooBar(); jimpil1...@gmail.com: no need to traverse the entire seq with 'filter' if you only want the 1st match... (some #(when (odd? %) %)  [2 4 6 7 8 9]) = 7 Jim On 19/05/13 13:42, Thumbnail wrote:

Re: find first match in a sequence

2013-05-19 Thread Cedric Greevey
On Sun, May 19, 2013 at 10:06 AM, Jim - FooBar(); jimpil1...@gmail.comwrote: no need to traverse the entire seq with 'filter' if you only want the 1st match... Pretty sure filter is lazy. user= (first (filter odd? (map #(do (println realized %) %) (iterate inc 0 realized 0 realized 1

Re: find first match in a sequence

2013-05-19 Thread Jim - FooBar();
ha! you cheated with iterate... try this which is closer to the example... (first (filter odd? (map #(do (println realized %) %) [2 4 6 7 8 9]))) realized 2 realized 4 realized 6 realized 7 realized 8 realized 9 7 Jim On 19/05/13 15:31, Cedric Greevey wrote: On Sun, May 19, 2013 at

Re: find first match in a sequence

2013-05-19 Thread Jim - FooBar();
remember the 32-chunked model... :) Jim On 19/05/13 15:54, Jim - FooBar(); wrote: ha! you cheated with iterate... try this which is closer to the example... (first (filter odd? (map #(do (println realized %) %) [2 4 6 7 8 9]))) realized 2 realized 4 realized 6 realized 7 realized 8

Re: find first match in a sequence

2013-05-19 Thread Mikera
On Wednesday, 11 February 2009 00:18:53 UTC+8, Jeff Rose wrote: Hi, Is there a built-in function that will return the first item in a collection that matches a predicate? (Something equivalent to Ruby's Enumerable#find...) Seems pretty basic, but I can't find it in the docs. Thanks,

Re: find first match in a sequence

2013-05-19 Thread Jonathan Fischer Friberg
On Sun, May 19, 2013 at 4:54 PM, Jim - FooBar(); jimpil1...@gmail.comwrote: ha! you cheated with iterate... try this which is closer to the example... (first (filter odd? (map #(do (println realized %) %) [2 4 6 7 8 9]))) realized 2 realized 4 realized 6 realized 7 realized 8

Re: Screencast: Clojure development with Sublime Text 2

2013-05-19 Thread James MacAulay
Jonathan: thanks, that's great! I'll add a note to the video mentioning that a patch is on the way. Next time I'll submit an issue :) Glen: yup, I just submitted a pull request yesterday (https://github.com/masondesu/sublime-paredit/pull/6) Jim: I only have leiningen 2 installed, so that's

Re: Screencast: Clojure development with Sublime Text 2

2013-05-19 Thread James MacAulay
I just noticed a little caveat on my suggestion of copying over Main.sublime-menu and editing it. It'll use the updated settings when you select the Clojure REPL from the menu (Tools SublimeREPL Clojure Clojure), but if you start the REPL from the command palette (cmd-shift-P) then it'll

Re: codeq: add support for importing from github, importing tags branches

2013-05-19 Thread Rich Morin
On May 18, 2013, at 16:36, Dan Burkert wrote: Attached are two patches for codeq. The first adds support for importing repositories into codeq directly from github through the github API, as well an improved CLI for codeq (necessary for specifying a github import). The second patch builds

Re: codeq: add support for importing from github, importing tags branches

2013-05-19 Thread Dan Burkert
On Sunday, May 19, 2013 7:08:19 PM UTC-4, Rich Morin wrote: On May 18, 2013, at 16:36, Dan Burkert wrote: What mechanisms are you using to manage and run Codeq? Right now I don't do a whole lot with Codeq (beyond working with its internals). I've had the idea (like a lot of people,

Re: codeq: add support for importing from github, importing tags branches

2013-05-19 Thread Dan Burkert
One more thing before I go to bed -- today I made a fix for what I would consider to be a bug in codeq importing. In the case where you are importing a fork of a project that you have already imported, the forked project is not associated with the commits already in the parent repo. In the

[ANN] CHP framework major update

2013-05-19 Thread Kelker Ryan
ClojureHomePage is a Compojure based web framework that allows you to write the backend and frontend with Clojure. Here's a small tutorialHere's the documentation You can Embed Clojure into a HTML file with the clj/clj tagsEnable multiple method handlers under a single route (get, post, put,