idiomatic way of counting loop iteration

2016-09-09 Thread Joeyjoejoe
Hi, I'm just stating to learn clojure, i made a first read of "clojure programming" to get the big picture, and i'm starting to play with the repl, trying to solve some katas. A lot of theses katas involves returning the count of loop iterations. Most of the time, i end up with this kind of fu

Re: idiomatic way of counting loop iteration

2016-09-09 Thread Joeyjoejoe
k-overflow when the number of iterations is high. > > Also, I recommend against the [a b & [n]] argument pattern here: > > https://stuartsierra.com/2015/06/01/clojure-donts-optional-arguments-with-varargs > > –S > > > On Friday, September 9, 2016 at 8:02:14 AM UTC-4,

Re: idiomatic way of counting loop iteration

2016-09-09 Thread Joeyjoejoe
of iterations is high. >> >> Also, I recommend against the [a b & [n]] argument pattern here: >> >> https://stuartsierra.com/2015/06/01/clojure-donts-optional-arguments-with-varargs >> >> –S >> >> >> >> On Friday, September 9, 2016 at 8:02:14 AM UTC-