Sorry for the noob question, but there is a good way to break down values from such a sequence.
(somefunc [[a b c] [1 2 3 4 5 6 7 8 9]] (prn a b c))
.. when abc is assigned to values until the sequence is exhausted and calls me the args function? The dose requires splitting the correct size.
(doseq [[a b c] (partition 3 [1 2 3 4 5 6 7 8 9])] (prn a b c))
Conclusion:
1 2 3 4 5 6 7 8 9
This does what I want, but it seems that there should be a way to do it in a straightforward manner without specifying a section. I found a solution with loop / recur, but this is a lot more code and clearly not idiomatic. What a good way to do this? Thank!
Markc source
share