mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
81bb520919
the worst case for `Array#reject!` (i.e. a proc always returning `true`) is at least 5x worse than the worst case for `Array#select!` (proc always returning `false`) this commit unifies these implementations and inlines the (effective) call of `#select!` in `#keep_if` and `#reject!` in `#delete_if`