sonic-pi

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

C++

Code. Music. Live.

Hamster::List#method_missing

Perform compositions of `car` and `cdr` operations (traditional shorthand
for `head` and `tail` respectively). Their names consist of a `c`,
followed by at least one `a` or `d`, and finally an `r`. The series of
`a`s and `d`s in the method name identify the series of `car` and `cdr`
operations performed, in inverse order.

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-method_missing-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#method_missing"


# 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-method_missing-for-pr

hub pull-request


# Celebrate!