Yellowstone sequence: Difference between revisions
Content added Content deleted
Line 244: | Line 244: | ||
// yellowstone :: Generator [Int] |
// yellowstone :: Generator [Int] |
||
function* |
function* yellowstone() { |
||
// A non finite stream of terms in the |
// A non finite stream of terms in the |
||
// Yellowstone permutation of the natural numbers. |
// Yellowstone permutation of the natural numbers. |
||
Line 286: | Line 286: | ||
const main = () => console.log( |
const main = () => console.log( |
||
take(30)( |
take(30)( |
||
yellowstone() |
|||
) |
) |
||
); |
); |