summaryrefslogtreecommitdiffhomepage
path: root/mrblib/range.rb
AgeCommit message (Collapse)Author
2021-08-03Replace `fixnum` references with `int`.Yukihiro "Matz" Matsumoto
The `Fixnum` class is no longer provided by `mruby`.
2021-05-14range.c: implement (part of) `Range#to_a` in C.Yukihiro "Matz" Matsumoto
Mostly for performance reason.
2021-05-13Simplify module inclusion for `Array`, `Hash` and `Range`.Yukihiro "Matz" Matsumoto
2021-05-12range.rb: add `Range#entries` as an alias to `Range#to_a`.Yukihiro "Matz" Matsumoto
2021-05-11Remove the obsolete term `Fixnum`.Yukihiro "Matz" Matsumoto
Except for compatibility code.
2020-10-15Merge branch 'work_for_merge' of https://github.com/zubycz/mruby into ↵Yukihiro "Matz" Matsumoto
zubycz-work_for_merge
2020-10-13Introduce endless range (a part of #5085)taiyoslime
Co-Authored-By: n4o847 <[email protected]> Co-Authored-By: smallkirby <[email protected]>
2020-10-12Integrate `Fixnum` class into `Integer` classdearblue
* The `Fixnum` constant is now an alias for the `Integer` class. * Remove `struct mrb_state::fixnum_class` member. If necessary, use `struct mrb_state::integer_class` instead.
2019-06-04Fix typo in `mrblib/range.rb` [ci skip]KOBAYASHI Shuji
2017-07-30Improved speed of enumeration methodsChristopher Aue
2017-03-10Use string#upto() if available; fix #3489Yukihiro "Matz" Matsumoto
Terminate loop if the value is longer than the last otherwise.
2015-08-21range.rb: refactor code (use ! instead of not, use favor modifier if and ↵go.kikuta
unless usage when having a single-line body)
2015-05-29update mrblib/*.rb files to conform (some of) Rubocop checksYukihiro "Matz" Matsumoto
2014-04-24Range#each fixnums are specialksss
2014-03-14mruby-enumerator: move definitions in core_mod.rb to mrblib coreYukihiro "Matz" Matsumoto
2014-02-08made mrb_define_class to return existing class, with heavy refactoringYukihiro "Matz" Matsumoto
2014-01-16hash value of enumerable should be obtained from its elements; close #1658Yukihiro "Matz" Matsumoto
2013-02-09"for i in (1..12/5); p i ; end" should not print "3"Yukihiro Matz Matsumoto
2012-05-06Forgot ISO Reference Code of Range - EnumerableDaniel Bovensiepen
2012-05-06Add documentation to RangeDaniel Bovensiepen
2012-04-20add mruby sourcesmimaki