public native reverseNew() as Array<T>
Returns a reversed copy without modifying the current array.
import klyn.collections values = f:[10, 20] reversed = values.reverseNew() print(reversed) # f:[20, 10] print(values) # f:[10, 20]
A new array with the same fixed size and reversed elements.