mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
CoffeeScript 1.9.0
This commit is contained in:
parent
a62e49311e
commit
e0ec8a51e4
82 changed files with 1310 additions and 1191 deletions
13
documentation/js/generators.js
Normal file
13
documentation/js/generators.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
// Generated by CoffeeScript 1.9.0
|
||||
var perfectSquares;
|
||||
|
||||
perfectSquares = function*() {
|
||||
var num;
|
||||
num = 0;
|
||||
while (true) {
|
||||
num += 1;
|
||||
(yield num * num);
|
||||
}
|
||||
};
|
||||
|
||||
window.ps || (window.ps = perfectSquares());
|
Loading…
Add table
Add a link
Reference in a new issue