With today's nightly the following things have changed to the List builtins:
List.dropFirst
now takes an extra argument with the number of elements to drop from the front.List.dropLast
now takes an extra argument with the number of elements to drop from the back.List.drop
has been renamed to List.dropFirst
So, to update your roc code:
List.dropFirst myList
with List.dropFirst myList 1
|> List.dropFirst
with |> List.dropFirst 1
List.dropLast myList
with List.dropLast myList 1
|> List.dropLast
with |> List.dropLast 1
List.drop
with List.dropFirst
Last updated: Jul 26 2025 at 12:14 UTC