Content deleted Content added
→ECMAScript: removed unnecessary blank lines |
→ECMAScript: simplified fibonacci function |
||
Line 484:
// inspired by: http://wiki.ecmascript.org/doku.php?id=harmony:generators
function* fibonacci() {
let
let [prev, curr] = [0, init];▼
while (true) {
yield curr;
}
}
|