mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Fixed bug in patters, pattern matching and tests
This commit is contained in:
parent
3e2c87d42f
commit
897af34aa9
7 changed files with 21 additions and 15 deletions
|
|
@ -79,13 +79,13 @@ public fun flatten (l) {
|
|||
|
||||
fun append (x) {
|
||||
local new = x : {};
|
||||
|
||||
|
||||
curr [0][1] := new;
|
||||
curr [0] := new
|
||||
}
|
||||
|
||||
|
||||
iter (fun (x) {iter (append, x)}, l);
|
||||
|
||||
|
||||
res [1]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue