Common array operations for Go slices.