summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/mrblib/array.rb
AgeCommit message (Collapse)Author
2018-09-19Removed `to_ary` conversion method.Yukihiro "Matz" Matsumoto
2018-09-19Removed `try_convert` method from Array and Hash.Yukihiro "Matz" Matsumoto
2017-11-17implement Array.transposeTomasz Dąbrowski
2017-10-20Add `Array#{permutation,combination}.Yukihiro "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-07-30Improved speed of enumeration methodsChristopher Aue
2017-07-28Added Array#bsearch_indexChristopher Aue
2017-07-28Refactored Array#bsearchChristopher Aue
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 to Array,Hash and StructYukihiro "Matz" Matsumoto
2015-11-24add {Array|Hash|String}.try_converttakahashim
2015-10-01Array#index to take block; fix #2968 close #2970Yukihiro "Matz" Matsumoto
2015-08-22Use #nil? instead of == nil.INOUE Yasuyuki
2014-05-03Delete unused variable in Array#delete_ifJun Hiroe
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
2014-04-25resolve conflictYukihiro "Matz" Matsumoto
2014-04-24Add Array#delete_ifJun Hiroe
2014-04-24Array#fill use `kind_of?` instead of `respond_to?`ksss
2014-04-24Array#fill fix bug when argument use range objectksss
2014-04-24Add Array#bsearchJun Hiroe
2014-04-23Array#insert: simpler (and faster) implementation; ref #2107Yukihiro "Matz" Matsumoto
2014-04-23Add Array#insertJun Hiroe
2014-04-21 Add Array#reject_bangJun Hiroe
2014-04-21Add Array#delete_ifJun Hiroe
2014-04-18Add a block argument with Array#uniqJun Hiroe
2014-04-18Add a block argument with Array#uniq_bangJun Hiroe
2014-04-12Add Array#rotate_bangJun Hiroe
2014-04-11Array#rotateJun Hiroe
2014-03-30Fix method nameKazuki Tsujimoto
2014-03-29Add Array#fillJun Hiroe
2014-03-28Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-03-28Array#reverse_each should return Enumerator; ref #1968Yukihiro "Matz" Matsumoto
2014-03-28Add Array#fetchJun Hiroe
2014-03-24improve Enumerable#reverse_each to be efficientYukihiro "Matz" Matsumoto
2014-01-29move range aware aget to array.c from mruby-array-ext gemYukihiro "Matz" Matsumoto
2014-01-10Added rewrite of Array#[] to mruby-array-ext gem, so that arrays can be slicedPaolo Bosetti
with Ranges (as a[1..-2])
2013-05-14add comments for mruby-array-extskandhas
2013-04-11string interpolation (#{foo}) does stringify implicitly; no need to call #to_sYukihiro "Matz" Matsumoto
2013-04-11Fix TypeError messagesh2so5
2013-03-23Array bang methods should return nil if no change happenYukihiro Matz Matsumoto
2013-03-22add method(uniq, -, |, &, flatten, compact) and test of Array to mruby-array-extKouki Ooyatsu