sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Hamster::Enumerable#group_by

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 (of the same type as this one).

Source | Google | Stack overflow

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 branch

git checkout -b -your-name--update-docs-Hamster--Enumerable-group_by-for-pr


# Commit to git

git add app/server/ruby/vendor/hamster-3.0.0/lib/hamster/enumerable.rbgit commit -m "better docs for Hamster::Enumerable#group_by"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Hamster--Enumerable-group_by-for-pr

hub pull-request


# Celebrate!