sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Hamster::Enumerable#group_by_with
Groups the collection into sub-collections by the result of yielding them to
the block. Returns a {Hash} where the keys are return values from the block,
and the values are sub-collections. All the sub-collections are built up from
`empty_group`, which should respond to `#add` by returning a new collection
with an added element.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/enumerable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Hamster--Enumerable-group_by_with-for-pr
# Commit to gitgit add app/server/ruby/vendor/hamster-3.0.0/lib/hamster/enumerable.rbgit commit -m "better docs for Hamster::Enumerable#group_by_with"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Hamster--Enumerable-group_by_with-for-pr
hub pull-request
# Celebrate!