mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 15:48:47 +00:00
Added pattern-matching in lectures
This commit is contained in:
parent
dad4c35a80
commit
d89cd76cd9
11 changed files with 247 additions and 27 deletions
|
|
@ -1,4 +1,6 @@
|
|||
fun collect_ints_acc (v, tail) local i {
|
||||
fun collect_ints_acc (v, tail) {
|
||||
local i;
|
||||
|
||||
case v of
|
||||
a@#unboxed -> return Cons (a, tail)
|
||||
| #string -> return tail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue