Skip to main content
faraza4154
Known Participant
Dec 21, 2022 10:44 AM UTC
Question

Splitting an Array using index

I have one array like {1,2,3,4,12,12}, I want a new sub array from 3rd index till end like {3,4,12,12}
is there any rule or function?

2 replies

stewart.burchell
Employee
Dec 21, 2022 11:01 AM UTC

fn!ldrop() will work for you:

a!localVariables(
  local!myArray: {1,2,3,4,12,12},
  ldrop(local!myArray,2)
)

results in:

New Participant
Jan 18, 2023 12:10 AM UTC

I have encountered this problem and. I don't know how to solve it yet

retro bowl