summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext
AgeCommit message (Collapse)Author
2019-02-01Move `NONE` to `mrblib/enum.rb`KOBAYASHI Shuji
2018-11-25Fix wrong number of arguments in `Array#fetch`; fix #4170Yukihiro "Matz" Matsumoto
2018-11-19Removed `to_ary` conversion method.Yukihiro "Matz" Matsumoto
2018-11-19Removed `try_convert` method from Array and Hash.Yukihiro "Matz" Matsumoto
2018-11-19fix non-ASCII comment.Yukihiro "Matz" Matsumoto
2018-10-12Call `uniq!` for each union processing in `Array#union`.Yukihiro "Matz" Matsumoto
2018-09-26Add index to larger segment lists for performanceYukihiro "Matz" Matsumoto
2018-09-21Implement `Array#union` which is introduced in Ruby2.6.Yukihiro "Matz" Matsumoto
2018-09-20Improve performance of `Array#uniq!`.Yukihiro "Matz" Matsumoto
2018-09-20Make `#to_h` to take a block; [ruby-core:89088]Yukihiro "Matz" Matsumoto
2018-09-18Array size may be changed in `mrb_get_args()` reentry.Yukihiro "Matz" Matsumoto
fix #4116; fix #4117; fix #4118; fix #4119; fix #4120
2018-09-07Clear terminated spacedearblue
2017-11-17implement Array.transposeTomasz Dąbrowski
2017-10-20Add `Array#{permutation,combination}.Yukihiro "Matz" Matsumoto
2017-10-17Use a new function: `mrb_get_argc()`; ref #3826Yukihiro "Matz" Matsumoto
2017-08-26Replaced Array#each with while loop for performance reasonsChristopher Aue
Example benchmark: $ time build/bench/bin/mruby -e "Array.new(2_000_000){ |i| i }.index{ |i| i == 1_999_999 }" Before: real 0m0.934s user 0m0.922s sys 0m0.003s After: real 0m0.590s user 0m0.583s sys 0m0.007s
2017-08-26Removed unneeded block check in Array#uniqChristopher Aue
2017-08-26Reimplemented Array#flatten with #flatten!Christopher Aue
2017-08-11Remove unnecessary inline function `ary_elt`.Yukihiro "Matz" Matsumoto
And the function does not conform the naming convention anyway.
2017-07-30Improved speed of enumeration methodsChristopher Aue
2017-07-28Added Array#bsearch_indexChristopher Aue
2017-07-28Refactored Array#bsearchChristopher Aue
2017-07-28Tested Array#bsearch more thoroughlyChristopher Aue
2017-07-27Embed small size array elements in the heap.Yukihiro "Matz" Matsumoto
It reduces the memory consumption and sometimes improve the performance as well. For example, the consumed memory size of `bench/bm_ao_render.rb` is reduced from 1.2GB to 1GB, and its total execution time become 18.795 sec from 22.229 sec.
2017-04-02Fixed out of bounds access; fix #3572, ref #3553Yukihiro "Matz" Matsumoto
2017-03-28Avoid inline local variable declarations; fix #3554Yukihiro "Matz" Matsumoto
2017-03-28Implement Array#slice!Kenji Okimoto
2016-11-16Fixed a memory problem in Array#to_hYukihiro "Matz" Matsumoto
Reported from Alex Snaps via Mathieu Leduc-Hamel, both from shopify.com. Thank you!
2016-11-02Update documentation of fetchLukas Elmer
The sentence `Negative values of +index+ count from the end of the array.` can be interpreted that it only holds if a block is given. Clarify it.
2016-03-23add #dig testsYukihiro "Matz" Matsumoto
2016-03-23add #dig to Array,Hash and StructYukihiro "Matz" Matsumoto
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-11-24add {Array|Hash|String}.try_converttakahashim
2015-10-21Revert "Mark core gems with mrbgem tag"Seba Gamboa
This reverts commit 5cdcce8dbddd94ecb9503a0a1d47370c4ef97177.
2015-10-20Remove obvious warnings from docsSeba Gamboa
2015-10-20Mark core gems with mrbgem tagSeba Gamboa
2015-10-01Array#index to take block; fix #2968 close #2970Yukihiro "Matz" Matsumoto
2015-08-22Use #nil? instead of == nil.INOUE Yasuyuki
2015-06-28Rename extended xxxx class or module to xxxx class or module extensionJun Hiroe
2015-06-28Fix typo; Replace extensional with extendedJun Hiroe
2014-06-02Add Array#to_hMitsutaka Mimura
2014-05-25no one uses Array.try_convert, so removed it that discourages duck typing; ↵Yukihiro "Matz" Matsumoto
close #2317
2014-05-03use proper length for mrb_get_values_at()Yukihiro "Matz" Matsumoto
separate mrb_range_beg_len() into two: the one truncates range into the sequence size, and the one does not. #values_at uses the latter.
2014-05-03Merge branch 'values_at' of https://github.com/take-cheeze/mruby into ↵Yukihiro "Matz" Matsumoto
take-cheeze-values_at
2014-05-03Delete unused variable in Array#delete_ifJun Hiroe
2014-05-02Implement Struct#values_at and Array#values_at .take_cheeze
Add API `mrb_get_values_at()` to mruby/range.h .
2014-04-30remove trailing spacesNobuyoshi Nakada
2014-04-28Speed up Array#select! from O(n^2) to O(n).Utkarsh Kukreti
2014-04-27Add Array#select_bangJun Hiroe
2014-04-25Add Array#keep_ifJun Hiroe