Returns the item in an array at a given index, possibly wrapping if the index is not a valid index of the array. Example
atMod([red, green, blue], 1) == greenatMod([red, green, blue], 4) == greenatMod([red, green, blue], -2) == green Copy
atMod([red, green, blue], 1) == greenatMod([red, green, blue], 4) == greenatMod([red, green, blue], -2) == green
Array of items
index to retrieve
Returns the item in an array at a given index, possibly wrapping if the index is not a valid index of the array. Example