Sorry for the noob question, but is there an good way to destructure values from a sequence like this..
(somefunc [[a b c] [1 2 3 4 5 6 7 8 9]] (prn a b c))
..with the a b c being assigned values until the sequence exhausted and letting me call a function on the args? doseq requires a partition of the right size..
(doseq [[a b c] (partition 3 [1 2 3 4 5 6 7 8 9])] (prn a b c))
Output:
1 2 3 4 5 6 7 8 9
That does what I want, but it seems like there should be a way to do this in s straightforward way without having to specify the partition. I found a solution with loop/recur but it's a lot more code and clearly non-idiomatic. What's a good way to do this? Thanks!