Skip to content
/ splat Public

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

Notifications You must be signed in to change notification settings

lsd/splat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages