git.s-ol.nu alive / 87ad39f
docs: small fixes s-ol 5 months ago
5 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
5656 #(trace (lfo 2): <bang! true>
5757 trace (lfo 2): <bang! true>)
5858
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
6060 value of `true`.
6161
6262 The [!][] builtin can be used to convert signal streams or constants into
77 The type notation `num[3]` designates an array of three numbers, whereas the
88 value notation `[1 2 3]` is used to show the array contents.
99
10 The [array][:array/:] module provides *Op*s for working with arrays.
10 The [array-][:array-/:] module provides *Op*s for working with arrays.
1212 `str` respectively, whereas the value notation `{a: 1 b: "hello world"}` shows
1313 the struct contents.
1414
15 The [struct][:struct/:] module provides *Op*s for working with arrays.
15 The [struct-][:struct-/:] module provides *Op*s for working with arrays.
00 Scopes contain symbol-result mappings and are used only at *evaltime*. Unlike
11 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.
33
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).
2222 5. compound types
2323 1. [arrays](05-1_arrays.html)
2424 2. [structs](05-2_structs.html)
25 3. [scopes](05-3_scopes.html)
2526 6. [builtin listing](builtins.html)
2627 7. included modules