Skip to content

The swap method is inconsistent and buggy #22

@christopherobin

Description

@christopherobin

When using the swap method between 2 elements of an array, the only way it works is by calling:
myArrayTome.swap(someKey, someValue) and it swaps the items at key someKey with the value someValue, but when trying to do myArrayTome.swap(someKey, someOtherKey) or myArrayTome.swap(someValue, someOtherValue) we start getting either exceptions or crashes.

Moreover, calling myValue.swap(someOtherValue) also crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions