mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update coffeescript-ru.html.markdown
This commit is contained in:
parent
7519249a0e
commit
fb9726b7be
@ -60,7 +60,7 @@ math =
|
||||
# "cube": function(x) { return x * square(x); }
|
||||
#}
|
||||
|
||||
# Функции:
|
||||
# Многоточия:
|
||||
race = (winner, runners...) ->
|
||||
print winner, runners
|
||||
#=>race = function() {
|
||||
@ -73,7 +73,7 @@ race = (winner, runners...) ->
|
||||
alert "Так и знал!" if elvis?
|
||||
#=> if(typeof elvis !== "undefined" && elvis !== null) { alert("Так и знал!"); }
|
||||
|
||||
# Понимание массивов:
|
||||
# Итерации по массивам:
|
||||
cubes = (math.cube num for num in list)
|
||||
#=>cubes = (function() {
|
||||
# var _i, _len, _results;
|
||||
|
Loading…
Reference in New Issue
Block a user