Backup commit before crunch

This commit is contained in:
2023-05-16 18:32:25 +01:00
parent 33413b2b0f
commit 126494c63f
59 changed files with 847 additions and 236 deletions

22
examples/maps/main.orc Normal file
View File

@@ -0,0 +1,22 @@
import list
import map
import option
import fn::*
export main := do{
let foo = map::new[
"foo" = 1,
"bar" = 2,
"baz" = 3,
"bar" = 4
];
map::get foo "bar"
|> option::unwrap
}
--[
export main := do{
let foo = list::new[1, 2, 3];
map::fst foo
}
]--