sonic-pi

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

C++

Code. Music. Live.

Hamster::List#zip

Combine two lists by "zipping" them together.  The corresponding elements
from this `List` and each of `others` (that is, the elements with the
same indices) will be gathered into lists.

If `others` contains fewer elements than this list, `nil` will be used
for padding.

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/list.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Hamster--List-zip-for-pr


# Commit to git

git add app/server/ruby/vendor/hamster-3.0.0/lib/hamster/list.rbgit commit -m "better docs for Hamster::List#zip"


# 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--List-zip-for-pr

hub pull-request


# Celebrate!