Array Operations
Appending Or Prepending To An Array With A Value
log "hello" + ["world"]
// This prepends a value to an array, returning ["hello","world"]
// Note: The + operator does NOT add a space when used between a string and an array
log ["hello"] + "world"
// This appends a value to an array, returning ["hello","world"]
// Note: The + operator does NOT add a space when used between an array and a stringRemoving A Value From An Array
array_result = ["a", "b", "c"] - 1
// This removes the item at index 1 and returns ["a", "c"]Concatenating Arrays
log ["hello"] ++ ["world"]
// This concatonated(joins) two arrays together and returns ["hello", "world"]Range Operator (to)
Last updated