Lattice
/
Playground
☰
StackVM
RegVM
Examples
Basics
Hello World
basic print
Variables & Phases
freeze/thaw
Math Functions
stdlib math
Functions & Types
Closures
higher-order fns
Structs
custom types
Enums
tagged unions
Traits
polymorphism
Collections
Arrays
map/filter
Data Structures
Stack/Queue
Iterators
chaining ops
Control Flow
Pattern Matching
match exprs
Try/Catch
error handling
Loops
for/while/loop
Advanced
Concurrency
scope/spawn
Forge Block
immutable builder
Channels
message passing
JSON
parse/stringify
Regex
pattern matching
Share
Clear
Home
Gallery
Docs
Architecture
Libraries
Performance
GitHub
Shared snippet — this is a browser sandbox.
Install Lattice locally
for real workloads.
×
lattice>
1
Loading Lattice runtime