You should be able to pull it off by looking at these pictures and get a good understanding of whats happening, an array is just a collection of variables
My Array
A
B
C
D
so the index would be which item your “looking at” so 0 would be “A” and 1 would be “B” and so on
the for each loop does exactly what it sounds like, for each element ( what we call the variables in an array ) do something, you’d use the Break part of the for each loop to exit the loop early and not continue looking at the variables
“get a copy” takes in an array and an Index
so My Array and say an index of 3 would return the variable D because computers start numbering from 0 so the first element is always at position or index 0
“add to array” would add a variable to the end of the Array
so if we say take My Array add “F” it would become
A
B
C
D
F
but oh no we forgot E
so how can we fix this without redoing the whole thing?
use “swap”
takes in an Array and two indexes so first you’d just do add “E”
But now you have
A
B
C
D
F
E
so then you run the swap with indexes 4 and 5
and then your array would be as intended
A
B
C
D
E
F
It’s fairly simple once you practice it once or twice, i hope this makes some sense as arrays can be a huge part of programming, there’s other things you can do to arrays that i didn’t cover but this is the basics and if you truly wanted to learn them and are struggling i could go make a picture explanation for these, my apologizes if you did know what an array was and just weren’t sure how to use the BP Node equivalents