1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/coffee/splats.coffee
2010-01-05 21:40:36 -05:00

25 lines
No EOL
421 B
CoffeeScript

gold: silver: the_field: "unknown"
medalists: first, second, rest... =>
gold: first
silver: second
the_field: rest
contenders: [
"Michael Phelps"
"Liu Xiang"
"Yao Ming"
"Allyson Felix"
"Shawn Johnson"
"Roman Sebrle"
"Guo Jingjing"
"Tyson Gay"
"Asafa Powell"
"Usain Bolt"
]
medalists(contenders...)
alert("Gold: " + gold)
alert("Silver: " + silver)
alert("The Field: " + the_field)