(loop [state init, n (count some-seq)]when it struck me that seqs are numerals too!
(if (pos? n)
(recur value (dec n))
(ends here)))
(loop [state init, n some-seq]or:
(if (seq n)
(recur value (rest n))
(ends here)))
(loop [state init, n (seq some-seq)]
(if n
(recur value (next n))
(ends here)))
No comments:
Post a Comment