Update List/append with stored value i-1

Co-authored-by: Nicolas Abril <y906846m@anonaddy.me>
This commit is contained in:
Evan M. Matthews 2024-05-29 12:30:33 -04:00 committed by GitHub
parent 3324a53880
commit 7955dd9ce1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: *
}