forked from Orchid/orchid
- Less ambiguous syntax - Better parser (Chumsky only does tokenization now) - Tidy(|ier) error handling - Facade for simplified embedding - External code grouped in (fairly) self-contained Systems - Dynamic action dispatch - Many STL additions
15 lines
236 B
Plaintext
15 lines
236 B
Plaintext
import std::(proc::*, to_string)
|
|
|
|
export const main := do{
|
|
let foo = map::new[
|
|
"foo" = 1,
|
|
"bar" = 2,
|
|
"baz" = 3,
|
|
"bar" = 4
|
|
];
|
|
let num = map::get foo "bar"
|
|
|> option::unwrap;
|
|
cps println $ to_string num;
|
|
0
|
|
}
|