Re: Calling functions from within maps

2018-03-19 Thread Hector Lucero
On Sunday, March 18, 2018 at 1:18:19 AM UTC-7, Hector Lucero wrote: > > Why does this work: > (map #(assoc % :sites (SITES-NAMES "theuser")) my-rows) > But this does not work: > (map #(assoc % :sites (SITES-NAMES (:f_username %)) my-rows) > > The second one

Re: Calling functions from within maps

2018-03-19 Thread Hector Lucero
On Sunday, March 18, 2018 at 1:18:19 AM UTC-7, Hector Lucero wrote: > > Why does this work: > (map #(assoc % :sites (SITES-NAMES "theuser")) my-rows) > But this does not work: > (map #(assoc % :sites (SITES-NAMES (:f_username %))) my-rows) > > The second one

Calling functions from within maps

2018-03-18 Thread Hector Lucero
Why does this work: (map #(assoc % :sites (SITES-NAMES "theuser")) my-rows) But this does not work: (map #(assoc % :sites (SITES-NAMES (:f_username %)) my-rows) The second one gives me an arity error. Given "theuser" and (:f_username %) are the same string as argument. -- You received this