Skip to content

Commit

Permalink
Update List.split to List.splitAt
Browse files Browse the repository at this point in the history
  • Loading branch information
imclerran committed Dec 11, 2024
1 parent d90ad35 commit cc8b2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/Rvn.roc
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ expect
actual == expected

decodeUtf8Bytes = \bytes, fromStr, len ->
{ before, others } = List.split bytes len
{ before, others } = List.splitAt bytes len
result =
before
|> Str.fromUtf8
Expand Down Expand Up @@ -1193,7 +1193,7 @@ decodeRecord = \initialState, stepField, finalizer ->
' ' | '\t' | '\n' | '#' | ':' -> Break count
_ -> Continue (count + 1)
)
{ before, others } = List.split remaining keyLen
{ before, others } = List.splitAt remaining keyLen
when skipWhitespace others is
[':', .. as rest] ->
{ result: Str.fromUtf8 before, rest }
Expand Down

0 comments on commit cc8b2fa

Please sign in to comment.