RE: Calling functions from within maps

2018-03-20 Thread Sean Corfield
re not annoying somebody, you're not really alive." -- Margaret Atwood From: clojure@googlegroups.com on behalf of Hector Lucero Sent: Monday, March 19, 2018 10:07:13 PM To: Clojure Subject: Re: Calling functions from within maps On Sunday, March 18,

Re: Calling functions from within maps

2018-03-20 Thread Matching Socks
Why not provide a short, self-contained example that demonstrates the problem? And, by the way, are you using paredit or park fee? -- 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 t

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 gives me an arity error. Given "the

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 gives me an arity error. Given "th

Re: Calling functions from within maps

2018-03-18 Thread Erik Assum
You’re missing a paren before my-rows. Not knowing that you do, but writing Clojure without paredit/park fee is a lot harder than without :) Erik. -- i farta > 18. mar. 2018 kl. 07:25 skrev Hector Lucero : > > Why does this work: > (map #(assoc % :sites (SITES-NAMES "theuser")) my-rows) >