make dropFirst and dropLast drop n elements

This commit is contained in:
Isaac Van Doren 2023-10-29 13:23:33 -05:00
parent cb6b36e218
commit 139d3c6f89
No known key found for this signature in database
GPG key ID: CFA524CD470E5B94
48 changed files with 3518 additions and 3470 deletions

View file

@ -329,7 +329,7 @@ fn decode() {
u8 = @MDecoder \lst, @Linear {} ->
when List.first lst is
Ok n -> { result: Ok n, rest: List.dropFirst lst }
Ok n -> { result: Ok n, rest: List.dropFirst lst 1 }
Err _ -> { result: Err TooShort, rest: [] }
MyU8 := U8 implements [MDecoding {decoder}]