clojure-doc / clojure-doc.github.io

Clojure Guides | Getting Started With Clojure | Clojure Tutorials
https://clojure-doc.github.io
45 stars 16 forks source link

change string example from doseq to let #51

Closed bobisageek closed 1 year ago

bobisageek commented 1 year ago

The existing example uses a string as a sequence, and thus prints one character at a time. This change swaps out doseq for let and updates the binding name to make the example a little bit more practical, while maintaining the spirit of the example (nested calls being captured by with-out-str).

seancorfield commented 1 year ago

Good catch! That's been there a while -- thank you!