Files
orchid/examples/maps/main.orc
Lawrence Bethlenfalvy aebbf51228 STL rework
- fixed lots of bugs
- overlay libraries work correctly and reliably
- the STL is an overlay library
- examples updated
2023-06-17 21:12:29 +01:00

14 lines
246 B
Plaintext

import std::(proc::*, io::print, to_string)
export main := do{
let foo = map::new[
"foo" = 1,
"bar" = 2,
"baz" = 3,
"bar" = 4
];
let num = map::get foo "bar"
|> option::unwrap;
cps print (to_string num ++ "\n");
0
}