mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 03:45:29 +03:00
Update List/append with stored value i-1
Co-authored-by: Nicolas Abril <y906846m@anonaddy.me>
This commit is contained in:
parent
3324a53880
commit
7955dd9ce1
@ -138,7 +138,7 @@ List/split/aux = @acc @l @i
|
||||
List/Cons:
|
||||
switch i {
|
||||
0: (acc, l)
|
||||
_: (List/split/aux (List/append acc l.head) l.tail (- i 1))
|
||||
_: (List/split/aux (List/append acc l.head) l.tail i-1)
|
||||
}
|
||||
List/Nil: *
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user