Re: Looking for advice to fine tune a simple function

2014-02-19 Thread Mark Fisher
it's more idiomatic to use *when* rather than *if* for cases where you won't be considering the false path. (when (<= x y) z) cond is used more as a multi-if with a drop out at the end (usually using ":else" which because it's a keyword is "truthy" when evaluated). On Wednesday, 19 February 2

problems with state-t monad transformer

2013-10-22 Thread Mark Fisher
I originally posted this in Stack Overflow, but realised I might get more response from the google group. Apologies for duplication. I'm seeing some issues using a parser mon

Re: problems with state-t monad transformer

2013-10-22 Thread Mark Fisher
ide-effecting functions in > your monads or define a fully lazy version of map and define m-plus in > terms of that? > > Sean > > On Tue, Oct 22, 2013 at 4:23 AM, Mark Fisher > > > wrote: > > I originally posted this in Stack Overflow, but realised I mig

Re: problems with state-t monad transformer

2013-10-22 Thread Mark Fisher
s being correctly > treated. > > > On Tue, Oct 22, 2013 at 4:23 AM, Mark Fisher > > wrote: > >> I originally posted this in Stack >> Overflow<http://stackoverflow.com/questions/19505334/clojure-algo-monad-strange-m-plus-behaviour-with-parser-m-why