Re: Pattern of Succinctness

2012-08-13 Thread dmirylenka
Should be (filter (comp not nil?) coll) On Sunday, August 12, 2012 9:44:11 PM UTC+2, Pierre-Henry Perret wrote: I prefer (filter (partial not nil?) coll) as a HOF Le dimanche 12 août 2012 20:46:59 UTC+2, rmarianski a écrit : On Sun, Aug 12, 2012 at 11:22:55AM -0700, Takahiro Hozumi wrote:

Re: Pattern of Succinctness

2012-08-13 Thread dmirylenka
Using threading operators + anonymous functions sometimes yields more succinct code than using HOF, especially because 'partial' and 'comp' are such long names: (comp count (partial filter nil?) (partial map foo)) #(- % (map foo) (filter nil?) count) On Sunday, August 12, 2012 7:35:16 PM

Re: Ideas for interactive tasks

2012-08-13 Thread Nikita Beloglazov
Thanks for idea, Igor. Seems like some kind of simulation (looking at your example and clojure ants demo) can be a good example of concurrency. Thank you, Nikita On Sun, Aug 12, 2012 at 2:01 PM, Igor Kupczyński puszc...@gmail.com wrote: Hi, For a java course at my university students had to

Fitting data to distributions with Incanter

2012-08-13 Thread myriam abramson
Sorry, for posting here. I am not sure if the Incanter mailing list is active nowadays and I need an answer to this question soon. Is there an easy way to fit data to distributions with Incanter similar to fitdistr in R? TIA -- You received this message because you are subscribed to the Google

Pattern/quote equivalent for CLJS?

2012-08-13 Thread Shantanu Kumar
Hi, I am looking for an equivalent of java.util.regex.Pattern/quote[1] for CLJS. Can anybody suggest a solution? (Maybe using Google Closure?) I found something relevant on StackOverflow[2] that I might try to proceed with, but thought to ask the community first. [1]

Re: Ideas for interactive tasks

2012-08-13 Thread dmirylenka
Wow, too bad I already graduated :) ФПМИ? On Thursday, August 9, 2012 5:28:54 PM UTC+2, Nikita Beloglazov wrote: Thank you, Jim. This is Belarusian State University. On Thu, Aug 9, 2012 at 6:23 PM, Jim - FooBar(); jimpi...@gmail.comjavascript: wrote: On 09/08/12 16:21, Nikita

Fixing a broken Java library

2012-08-13 Thread martin_clausen
I am using the otherwise nice java-libpst (http://code.google.com/p/java-libpst/) library to extract data from .pst files produced by Outlook for further processing in Clojure. Unfortunately the method (http://code.google.com/p/java-libpst/source/browse/trunk/com/pff/PSTMessage.java#860)

Re: Ideas for interactive tasks

2012-08-13 Thread Nikita Beloglazov
Daniil, yes it is Do you have some suggestions about tasks or teaching at the BSU in generally? :) Nikita On Mon, Aug 13, 2012 at 9:00 PM, dmirylenka daniilmirile...@gmail.comwrote: Wow, too bad I already graduated :) ФПМИ? On Thursday, August 9, 2012 5:28:54 PM UTC+2, Nikita Beloglazov

clojure.logic project.clj file

2012-08-13 Thread Brent Millare
I think the :source-path line in project.clj should be :source-paths [src/main/clojure]. Is :source-path still looked up in leiningen2? -- 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

currying and partial evaluation

2012-08-13 Thread Michael Jaaka
nice, thanks a lot -- 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,

Re: Fixing a broken Java library

2012-08-13 Thread Jonathan Fischer Friberg
gen-class supports both static methods and protected vars. http://kotka.de/blog/2010/02/gen-class_how_it_works_and_how_to_use_it.html http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/gen-class (see :exposes in the second for protected access). Jonathan On Mon, Aug 13, 2012

Re: clojure.logic project.clj file

2012-08-13 Thread David Nolen
On Mon, Aug 13, 2012 at 4:38 PM, Brent Millare brent.mill...@gmail.com wrote: I think the :source-path line in project.clj should be :source-paths [src/main/clojure]. Is :source-path still looked up in leiningen2? Is there something specific you are trying to do? David -- You received this