Note that while slices are different types than arrays, they are rendered similarly by the print function.
When you run this script, you should see output similar to this:
AngelScript doesn’t have a built-in slices type like Go, so we’re using the array type which is similar in many ways. Some key differences:
AngelScript arrays are zero-indexed, like Go slices.
The append function in Go is replaced by the insertLast method in AngelScript.
Slicing in AngelScript is done with the slice method, rather than the [:] syntax in Go.
Capacity in AngelScript is handled automatically and can be queried with the capacity() method.
Multi-dimensional arrays in AngelScript are created as arrays of arrays.
Remember that AngelScript’s array handling may not be as optimized for these operations as Go’s slice implementation, so performance characteristics might differ.