Files
orchid/examples/maps/main.orc
Lawrence Bethlenfalvy 86e520e8b8 September-october commit
- manual parser
- stl refinements
- all language constructs are now Send
2023-10-11 18:27:50 +01:00

15 lines
225 B
Plaintext

import std::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
}