Re: boolean problem

2014-04-17 Thread Stanislas Nanchen
Hello, You miss one parentheses at the end of your expression (defn boolean [x] (if (and (nil? x) (false? x)) )) cheers, stan. On Thursday, April 17, 2014 9:11:13 AM UTC+2, Roelof Wobben wrote: > > Hello, > > IM working at the Iloveponies github tutorial and Im stuck here, > > I have to ch

Re: Question about destructuring with :keys :or and :as

2013-05-03 Thread Stanislas Nanchen
What about merging with a default map? (defn my-function [params] (let [params (merge {:my-key 5} params)] (str "my-key value is " (:my-key params Well, I need to do something more "clever" because I am passing the whole > map to another function which does validation on the key-valu