Re: Generating a deck of cards in Clojure using generator functions (a la Python)

2017-03-15 Thread Alex Engelberg
I originally abandoned clj-generators because it introduces significant performance overhead (and an extra thread), which I think makes it unrealistic for generating lazy sequences in practice. Perhaps switching to dar.async would remove the overhead: https://github.com/dar-clojure/async On

Generating a deck of cards in Clojure using generator functions (a la Python)

2017-03-14 Thread Alan Thompson
A recent post to StackOverflow asked for clarification on different ways of generating a deck of cards. The OP had used nested `for` with `flatten` and `map-indexed` but