Skip to content
Snippets Groups Projects
  • Per Hedbor's avatar
    e3d39ae2
    Changed ordo of array-({item}) from O(n log n) to O(n). · e3d39ae2
    Per Hedbor authored
    This especially helps when you have arrays with objects with `< and
    `== operator overloading, where the constant is also changed
    dramatically.
    
    Also, it is now enough to have == operator overloading to get - to
    work (given that there is at most one object in the array getting
    items removed.)
    e3d39ae2
    History
    Changed ordo of array-({item}) from O(n log n) to O(n).
    Per Hedbor authored
    This especially helps when you have arrays with objects with `< and
    `== operator overloading, where the constant is also changed
    dramatically.
    
    Also, it is now enough to have == operator overloading to get - to
    work (given that there is at most one object in the array getting
    items removed.)