Fork me on GitHub
#beginners
<
2018-09-29
>
jduhamel02:09:09

I have a question that feels like it should be simple. I have a vector that contains [ 'Code1', 'Name', 'Desc', 'group1', group2','repeating groups'] I’d like to convert it into a hashmap that looks like {:code 'Code1', :name 'Name', :description 'Desc', :groups ('groups1', 'group2', '…')} What’s the right way to do this?

huygn13:09:43

hi, in clojurescript the map function return a lazy seq which cause issue in place where array is expected, how can i make it "eager"?

huygn13:09:43

hi, in clojurescript the map function return a lazy seq which cause issue in place where array is expected, how can i make it "eager"?

joelsanchez14:09:44

check mapv too

Azzurite14:09:05

and it's called "realizing the lazy seq" so that'd be how you can google it

JanisOlex16:09:28

Hi, is there some way to pass 2nd (or any non-first) argument to the function which is value of the 1st argument Thing is that sometimes I have function of form (fn (fn2 a b c) x y) and I want that x is actually value of (fn2 a b c)

dadair17:09:11

(let [x (fn2 a b c)] (fn x y)), if I’m understanding you correctly?

dadair17:09:45

or (let [x (fn2 a b c)] (fn x x y))?