Files
orchid/examples/maps/main.orc
Lawrence Bethlenfalvy 3fdabc29da Most files suffered major changes
- 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
2023-08-18 12:57:41 +01:00

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
}