suppose in clojure I have a lazy sequence (a b c d …..) and suppose that I have a univariate function f(x). How would I transform the old lazy sequence into a new lazy sequence (f(a) f(b) ….). i.e. I seek the transformation. Thanks :
(a b ....) [lazy] -> (f(a) f(b) ....) [also lazy]
mapdoes everything you need. It preserves the “laziness” of sequences that you apply it to.Example with infinite ranges: