Massive improvements across the board. One day I'll adopt incremental commits.
15 lines
250 B
Plaintext
15 lines
250 B
Plaintext
import std::conv::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::assume;
|
|
cps println $ to_string num;
|
|
exit_status::success
|
|
}
|