docs: small fixes
s-ol
5 months ago
56 | 56 |
#(trace (lfo 2): <bang! true>
|
57 | 57 |
trace (lfo 2): <bang! true>)
|
58 | 58 |
|
59 | |
where `<num~ 1.0>` denotes an event-stream of the type `bang` that fired with a
|
|
59 |
where `<bang! true>` denotes an event-stream of the type `bang` that fired with a
|
60 | 60 |
value of `true`.
|
61 | 61 |
|
62 | 62 |
The [!][] builtin can be used to convert signal streams or constants into
|
7 | 7 |
The type notation `num[3]` designates an array of three numbers, whereas the
|
8 | 8 |
value notation `[1 2 3]` is used to show the array contents.
|
9 | 9 |
|
10 | |
The [array][:array/:] module provides *Op*s for working with arrays.
|
|
10 |
The [array-][:array-/:] module provides *Op*s for working with arrays.
|
12 | 12 |
`str` respectively, whereas the value notation `{a: 1 b: "hello world"}` shows
|
13 | 13 |
the struct contents.
|
14 | 14 |
|
15 | |
The [struct][:struct/:] module provides *Op*s for working with arrays.
|
|
15 |
The [struct-][:struct-/:] module provides *Op*s for working with arrays.
|
0 | 0 |
Scopes contain symbol-result mappings and are used only at *evaltime*. Unlike
|
1 | 1 |
arrays and structs, which contain other types and have to either wholly be a
|
2 | |
constant, ~-stream or !-steam, a single scope can contain all of these.
|
|
2 |
constant, ~-stream or !-steam, a single scope can contain any combination of these.
|
3 | 3 |
|
4 | |
For this reason, scopes are used for metaprogramming and modules.
|
|
4 |
Scopes can be created using the [export][] and [export*][] builtins and are often
|
|
5 |
returned from [require][].
|
|
6 |
|
|
7 |
They are mostly used for grouping definitions and can be indexed using the slash
|
|
8 |
(`/`) symbol. For more information on this, see section [3.1. symbol resolution](./03-1_symbol-resolution.html).
|
22 | 22 |
5. compound types
|
23 | 23 |
1. [arrays](05-1_arrays.html)
|
24 | 24 |
2. [structs](05-2_structs.html)
|
|
25 |
3. [scopes](05-3_scopes.html)
|
25 | 26 |
6. [builtin listing](builtins.html)
|
26 | 27 |
7. included modules
|