Prelude
The following items are available globally in every Do program without any
import statement.
The dolang executable layers its
shell prelude on top of this core prelude.
Embedded runtimes may provide a different additional prelude.
std
| Name | Description |
|---|---|
Array |
Array type |
array |
Variadic array factory |
Bin |
Bin type |
Bool |
Bool type |
bool |
Truthiness coercion |
class |
Inherited class member decorator |
dbg |
Debug representation |
Dict |
Dict type |
dict |
Variadic dictionary factory |
Float |
Float type |
float |
Numeric coercion and parsing |
Func |
Func type |
getter |
Class field getter decorator |
Int |
Int type |
int |
Integer coercion and parsing |
Range |
Range type |
Record |
Record type |
record |
Variadic record factory |
Set |
Set type |
setter |
Class field setter decorator |
static |
Uninherited class member decorator |
Str |
Str type |
str |
Textual representation |
Sym |
Sym type |
sym |
Symbol interning |
Tuple |
Tuple type |
tuple |
Variadic tuple factory |
Type |
Type type |
type |
Type query and test function |
strand
The module itself is imported, along with these functions:
| Name | Description |
|---|---|
fork |
Executes blocks concurrently |
pipeline |
Connects concurrent pipeline stages |
stream |
Creates a background stream strand |
put |
Writes to the strand-local output |
spawn |
Creates a background strand |