sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Hamster.enumerate
Turn an `Enumerator` into a `Hamster::List`. The result is a lazy collection where the values are memoized as they are generated. If your code uses multiple threads, you need to make sure that the returned lazy collection is realized on a single thread only. Otherwise, a `FiberError` will be raised. After the collection is realized, it can be used from other threads as well.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/hamster-3.0.0/lib/hamster/list.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Hamster-enumerate-for-pr
# Commit to gitgit add app/server/ruby/vendor/hamster-3.0.0/lib/hamster/list.rbgit commit -m "better docs for Hamster.enumerate"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Hamster-enumerate-for-pr
hub pull-request
# Celebrate!