diff --git a/src/documentation/patterns/generators.ts b/src/documentation/patterns/generators.ts index efd9b1c..ba80105 100644 --- a/src/documentation/patterns/generators.ts +++ b/src/documentation/patterns/generators.ts @@ -6,7 +6,7 @@ export const generators = (application: Editor): string => { return ` # Generator functions -JavaScript [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) are powerful functions for generating value sequences. They can be used to generate melodies, rhythms or control parameters. +JavaScript generators are powerful functions for generating value sequences. They can be used to generate melodies, rhythms or control parameters. In Topos generator functions should be called using the cache(key, function) function to store the current state of the generator. This function takes two arguments: the name for the cache and the generator instance. @@ -74,11 +74,11 @@ ${makeExample( ## OEIS integer sequences -To find some inspiration or to enter into a void one can visit [OEIS](https://oeis.org/) to find some interesting integer sequences. Many of the sequences are also included in Topos from [JISG](https://github.com/acerix/jisg/tree/main/src/oeis) (Javascript Integer Sequence Generators) project. +To find some inspiration - or to enter into the void - one can visit The On-Line Encyclopedia of Integer Sequences (OEIS) to find some interesting integer sequences. -One of these implemented generators is the Inventory sequence [A342585](https://github.com/acerix/jisg/blob/main/src/oeis/A342585.ts) made famous by [Neil Sloane](https://www.youtube.com/watch?v=rBU9E-ZOZAI). +Many of the sequences are implemented by JISG (Javascript Integer Sequence Generators) project. Those sequences can be referenced directly with the identifiers using the cache function. -Those OEIS sequences implemented by the **JISG** can be referenced directly with the identifiers in the cache function. For example: +One of these implemented generators is the Inventory sequence A342585 made famous by Neil Sloane. ${makeExample( "Inventory sequence",