klyn.collections.Array.reverseNew
method

    public native reverseNew() as Array<T>

Description

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]

Returns

A new array with the same fixed size and reversed elements.