Commit Graph

29 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 68470bef86 Check method existence in `to_enum'; ref #3773 2017-08-11 09:21:09 +09:00
Christopher Aue 3359b86ec7 Improved speed of enumeration methods 2017-07-30 13:19:31 +02:00
Yukihiro "Matz" Matsumoto 464d3fc0a3 Use alias enum_for to_enum instead of alias :enum_for :to_enum. 2017-06-21 11:13:43 +09:00
Kenji Okimoto d93a5c1a84 Fix Enumerator#each_with_index with block
In previous version,

```
a = [3, 2, 1]
e = a.each
e.sort_by(&:to_i) # => []
```

In this version,

```
a = [3, 2, 1]
e = a.each
e.sort_by(&:to_i) # => [1, 2, 3]
```
2017-03-30 10:53:55 +09:00
ksss 2718fed124 Support svalue 2016-12-01 16:13:24 +09:00
ksss 0f774ff4df Support nil argument as no argument 2016-12-01 15:33:27 +09:00
ksss 31f0ffeac8 Support Enumerable methods 2016-12-01 10:42:57 +09:00
Seba Gamboa 25c8e95365 Revert "Mark core gems with mrbgem tag"
This reverts commit 5cdcce8dbd.
2015-10-21 14:31:13 -03:00
Seba Gamboa 13b552538a Remove obvious warnings from docs 2015-10-20 12:48:31 -03:00
Seba Gamboa 45e70e4dd6 Fix enumerator doc errors 2015-10-20 12:16:47 -03:00
Seba Gamboa 5cdcce8dbd Mark core gems with mrbgem tag 2015-10-20 12:16:47 -03:00
Yukihiro "Matz" Matsumoto 569c7dec5f move StopIteration to core; close #2518 2014-08-08 16:08:53 +09:00
Yukihiro "Matz" Matsumoto f454f827ee should not use String#<< which is defined in mruby-string-ext; use Array#join instead; ref #2239 2014-05-13 12:59:21 +09:00
Yukihiro "Matz" Matsumoto 8808c9a31a wrap args by parens 2014-04-06 20:29:54 +09:00
Jun Hiroe 1368ae647b Add args in Enumerator#inspect 2014-04-06 02:45:04 +09:00
Yukihiro "Matz" Matsumoto 2277c374db revert #1974; ref #1979 2014-03-30 08:29:09 +09:00
ksss 5a2014b8f8 Enumerator#initialize support duck-type 2014-03-29 09:24:00 +09:00
Jun Hiroe 110486debe Fix a typo 2014-03-29 00:16:12 +09:00
Yukihiro "Matz" Matsumoto b5cb8284ba Enumerable#zip to use enumerator if mruby-enumerator gem is available 2014-03-27 14:35:07 +09:00
Yukihiro "Matz" Matsumoto 8250016136 use __svalue instead of ary2sv 2014-03-27 14:28:49 +09:00
ksss 4f8e11ae57 optimize from each to enumerator_block_call 2014-03-15 08:21:39 +09:00
ksss 0bb7f5e950 fix variable name typo 2014-03-15 08:21:39 +09:00
ksss 6b3cc0052d fix self modifying bug 2014-03-15 08:15:16 +09:00
ksss 47fc784b56 fix return value for with_index 2014-03-15 08:15:16 +09:00
ksss 29964cfdac make private method enumerator_block_call 2014-03-14 23:42:04 +09:00
Yukihiro "Matz" Matsumoto 8094a503f0 move dependency check from runtime to mrbgem.rake 2014-03-14 02:59:50 +09:00
Yukihiro "Matz" Matsumoto 58362fc30c remove ambiguity warnings 2014-03-14 02:44:14 +09:00
Yukihiro "Matz" Matsumoto 113ab60784 mruby-enumerator: move definitions in core_mod.rb to mrblib core 2014-03-14 02:41:22 +09:00
ksss 463c5f83c3 add mruby-enumerator 2014-03-13 23:47:12 +09:00