In challenge 11, we have used generators to implement
for i in ../*/*py; do grep ^import $i|sed 's/import //g' ; done | sort | uniq -c | sort -nr
How about redoing same challenge with Coroutines ?
If interested, users can use below references.
- Curious Course on Coroutines and Concurrency
- Coroutines