mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
2ae1160b39
Array#find is an optimized version of Enumerable#find for arrays, using direct index access instead of each iterator. Array#rfind finds from the end of the array, returning the first match when scanning backwards. Both methods support the ifnone parameter for default values. Co-authored-by: Claude <noreply@anthropic.com>