Nanyx
Search docs...
⌘K
Playground
Packages
Run
Stop
Examples…
Def bindings
Type annotations
Blocks
Several statements on one line
do blocks
Type inference
Type annotations
Basic types
Top and bottom types
Tuple types
Unified tuples and records (1)
Unified tuples and records (2)
Tag unions
Recursive types
Generic types
Type aliases
Function types
Function type precedence
typeof
Record values (1)
Record values (2)
Record values (3)
Record types (1)
Record types (2)
Constructing records from a type alias
Structural typing
Closed and open records (1)
Closed and open records (2)
Closed and open records (3)
Records vs tuples (1)
Records vs tuples (2)
Fields that may be absent
Fields that hold functions
Copy and update (non-destructive mutation) (1)
Copy and update (non-destructive mutation) (2)
Copy and update (non-destructive mutation) (3)
Record spread (...)
Tags as values and types (1)
Tags as values and types (2)
Tag unions
Payloads (1)
Payloads (2)
Payloads (3)
Payloads (4)
Polymorphic tag unions (1)
Polymorphic tag unions (2)
Runtime behavior
Function basics (1)
Function basics (2)
Function basics (3)
Multi-parameter functions
Unit type
Annotating lambda parameters
Type arguments (1)
Type arguments (2)
Type arguments (3)
Inspecting a type
Building a value
Callable values
Higher-order functions
Pattern-matching functions
Recursive functions (1)
Recursive functions (2)
Tail recursion
Function composition
Currying (1)
Currying (2)
Pure functions
Map Implementation
Filter implementation
Fold implementation
Polymorphic functions (1)
Polymorphic functions (2)
Polymorphic functions (3)
Passing functions
Trailing Lambdas
Shorthand lambdas
Pattern matching in lambdas
Contextual lambdas
Parametric contexts (1)
Parametric contexts (2)
Tuples
Tags (1)
Tags (2)
Nesting patterns
Guards (1)
Guards (2)
Pattern-matching functions (1)
Pattern-matching functions (2)
Tests anywhere (1)
Tests anywhere (2)
Inference for functions (1)
Inference for functions (2)
Inference for functions (3)
Inference for functions (4)
Inferring tag unions (1)
Inferring tag unions (2)
Inferring tag unions (3)
Positional vs named inference (1)
Positional vs named inference (2)
Partial annotations
Immutable vs mutable
Arrays and slices
Common collection abstractions (1)
Common collection abstractions (2)
Common collection abstractions (3)
Common collection abstractions (4)
Syntax (1)
Syntax (2)
Syntax (3)
Piping with extra arguments (1)
Piping with extra arguments (2)
Pipes on the lines after
Piping with trailing lambdas (1)
Piping with trailing lambdas (2)
Piping with trailing lambdas (3)
Piping into a match
Qualified piping
Basic loops
Pattern matching in loops
Looping collections (1)
Looping collections (2)
Looping collections (3)
Looping over several collections at once
Enumerating with indexes
Dictionaries
While loops
Ranges (1)
Ranges (2)
Ranges (3)
Types and ranges
Implementing ranges
Module declaration (1)
Module declaration (2)
Qualified imports
Selective imports (1)
Selective imports (2)
Using a module block in its own file
Packages (1)
Packages (2)
Packages (3)
@entry
Defining operators (1)
Defining operators (2)
Using operators as functions (1)
Using operators as functions (2)
Pipe and composition (1)
Pipe and composition (2)
Naming conventions
Error handling (1)
Error handling (2)
Falling back with ??
The except keyword (1)
The except keyword (2)
Chaining with pipelines
Share
Loading the compiler…
Output
Clear
›