Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple set of examples you can run to figure out how * works in Ruby

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
Octocat-spinner-32 diff.rb
Octocat-spinner-32 example.rb
Octocat-spinner-32 ruby_186.txt
Octocat-spinner-32 ruby_191.txt
Octocat-spinner-32 splat.rb
README
Hi,


In ruby [*[1,2,3]] == [1,2,3]. 

It doesn't stop there. The splat does all kinds of stuff.



To play with it, clone this, and then run splat.rb.


If you want, you can try to guess what ruby will give.

Run it in both 1.8 and 1.9 to see the differences.


Best,

Mischa 
Something went wrong with that request. Please try again.