forked from Orchid/orchid
- fixed lots of bugs - overlay libraries work correctly and reliably - the STL is an overlay library - examples updated
14 lines
246 B
Plaintext
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
|
|
} |