Re: -> operator and monads

2013-04-17 Thread Matthew Hill
nalogue to ->. On Sunday, 14 April 2013 21:03:20 UTC+1, Marko Topolnik wrote: > > On Sunday, April 14, 2013 7:51:10 PM UTC+2, Matthew Hill wrote: > >> Function composition is done via comp. Using -> and ->> is like function >> composition in reverse order (though there&#x

Re: -> operator and monads

2013-04-14 Thread Matthew Hill
Function composition is done via comp. Using -> and ->> is like function composition in reverse order (though there's a difference between how the two thread return values), and often it reads more naturally. user> (-> [1 2 5] rest first) 2 user> ((comp first rest) [1 2 5]) 2 On Wednesday, 3 Ap

Re: ClojureScript crossovers

2013-03-27 Thread Matthew Hill
^ To be clear, that's in the project dependent upon the library, where I'm trying to use it, not the library itself. On Thursday, 28 March 2013 02:03:38 UTC, Matthew Hill wrote: > > Hi Evan. Thanks for the response. > > The ClojureScript compiler looks for *.cl

Re: ClojureScript crossovers

2013-03-27 Thread Matthew Hill
Hi Evan. Thanks for the response. The ClojureScript compiler looks for *.cljs files to compile as > ClojureScript. Hence, at a minimum, the *.clj files that you want to also > use from ClojureScript need to be copied (or perhaps symlinked, but that's > not what lein-cljsbuild does) to *.cljs f

ClojureScript crossovers

2013-03-27 Thread Matthew Hill
Hello, I'm working on a library that works with both Clojure and ClojureScript. Here's the project.clj for the library: (defproject libtest "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME"; :license {:name "Eclipse Public License" :url "h