mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
trying out new arrows for function literals -> is a function, => is a bound function
This commit is contained in:
4
test/fixtures/execution/test_splats.coffee
vendored
4
test/fixtures/execution/test_splats.coffee
vendored
@@ -1,4 +1,4 @@
|
||||
func: (first, second, rest...) =>
|
||||
func: (first, second, rest...) ->
|
||||
rest.join ' '
|
||||
|
||||
result: func 1, 2, 3, 4, 5
|
||||
@@ -8,7 +8,7 @@ print result is "3 4 5"
|
||||
|
||||
gold: silver: bronze: the_field: null
|
||||
|
||||
medalists: (first, second, third, rest...) =>
|
||||
medalists: (first, second, third, rest...) ->
|
||||
gold: first
|
||||
silver: second
|
||||
bronze: third
|
||||
|
||||
Reference in New Issue
Block a user