Yukihiro "Matz" Matsumoto
f3cd991771
mruby-enum-lazy: add Enumerator::Lazy#tap_each
...
add tap_each method that yields each element for side effects
(e.g. logging, debugging) and passes it through unmodified.
see https://bugs.ruby-lang.org/issues/21520
Co-authored-by: Claude <noreply@anthropic.com >
2026-04-23 19:25:25 +09:00
Chris Hasiński
8f71887e46
Improve flat_map test descriptions for clarity
2026-03-28 23:14:46 +01:00
Chris Hasiński
3f52ef6cfc
Fix Lazy#flat_map to handle non-enumerable block return values
...
When the block passed to Lazy#flat_map returns a non-enumerable value
(e.g. an Integer), mruby raised NoMethodError because it unconditionally
called #each on the result. CRuby yields non-enumerable values directly.
Use respond_to?(:each) to match CRuby behavior: iterate enumerable
results, yield non-enumerable results as-is.
2026-03-28 22:59:11 +01:00
buty4649
031476a853
mruby-enum-lazy: add grep_v method
2024-02-15 14:55:38 +09:00
Yukihiro "Matz" Matsumoto
4d249c28d9
Skip tests that use Float inside; ref #5421
2021-04-24 12:04:08 +09:00
Okumura Takahiro
0664c452ee
Fix tinytypo
2018-03-16 00:19:09 +09:00
Yukihiro "Matz" Matsumoto
779c2629fe
resolve conflict; ref #3306
2016-11-30 12:54:20 +09:00
ksss
0f90227907
Change Lazy class outer
...
Lazy class should be under Enumerator instead of Enumerable
2016-11-30 12:36:22 +09:00
ksss
8675975ba2
Implement Enumerable::Lazy#to_enum and enum_for
2016-11-30 11:02:02 +09:00
Yukihiro "Matz" Matsumoto
7a9630a5bb
add mruby-enum-lazy mrbgem for Enumerable::Lazy
2014-04-04 10:33:17 +09:00