mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
c28b29f5ef
Refactored `Array#product` to remove the use of a `lambda` and a dynamically defined singleton method (`[]=` alias). This improves readability and reduces Ruby object allocation overhead by separating block and non-block logic explicitly. Explicit `return` statements were added to resolve an issue where `nil` was incorrectly returned in certain scenarios. Co-authored-by: Gemini <gemini@google.com>