Say I'have a lazy sequence called numbers that's giving me an infinite sequence of numbers: 0, 1, 2, 3, 4, 5, 6...
(def numbers (iterate inc 0))
I limit the infinity by passing it to the function take. e.g.:
(take 3 numbers)
; > (0 1 2)
I'm asking myself how to add some post-processing to the members of the lazy sequence. More concretely: How would I declare a function "numbers-doubled" that would produce the following output, when I use take:
(take 3 numbers-doubled)
; > ("00" "11" "22")