Skip to main content
faraza4154
December 21, 2022
Question

Splitting an Array using index

  • December 21, 2022
  • 2 replies
  • 0 views

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
December 21, 2022

fn!ldrop() will work for you:

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

results in:

January 18, 2023

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

retro bowl