Jun Hiroe
|
012c32ad0a
|
Add comments to Hash methods
|
2014-05-10 18:11:07 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
adea2ca371
|
Merge pull request #2223 from yui-knk/fix-nameerror
Delete unused NameError#new. And add test.
|
2014-05-10 13:11:00 +09:00 |
|
yui-knk
|
658a00ba49
|
Change to raise TypeError (Hash#merge, #merge!)
|
2014-05-10 10:18:15 +09:00 |
|
yui-knk
|
1a00a34cc2
|
Delete unused NameError#new. And add test.
|
2014-05-10 01:12:52 +09:00 |
|
ksss
|
d6b4cdb6ac
|
use Kernel#__send__ insteard of Kernel#send
|
2014-04-30 22:25:21 +09:00 |
|
Nobuyoshi Nakada
|
ab67c57f65
|
remove trailing spaces
|
2014-04-30 09:50:14 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
855a3f5991
|
re-apply 3644f1b since we have fixed GC bug
|
2014-04-27 02:52:04 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b1b3ee4547
|
revert 3644f1b temporary since it caused SEGV only on Travis-CI
|
2014-04-26 11:06:53 +09:00 |
|
mirichi
|
3644f1ba36
|
Refactoring Comparable
|
2014-04-26 09:37:37 +09:00 |
|
mirichi
|
d2e4937cea
|
Refactoring Array#__svalue
|
2014-04-25 21:36:52 +09:00 |
|
ksss
|
209bf256aa
|
Range#each fixnums are special
|
2014-04-24 13:53:54 +00:00 |
|
Yukihiro "Matz" Matsumoto
|
3308177c4d
|
retrieve values in Hash#each to handle modified keys
|
2014-04-12 10:42:02 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4e2ae3e376
|
Hash#replace should copy default from original even when the default value of the original is not set
|
2014-04-07 02:02:53 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
59cd24d41f
|
Hash#replace should copy default as well; close #2004
|
2014-04-04 12:14:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b9a4d64064
|
implement Hash#initialize in C
|
2014-04-04 11:03:26 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
786ed10d59
|
call to_hash before replacing hash
|
2014-04-04 10:55:48 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b8ab6af39d
|
protect NoMethodError from calling to_hash in ==/eql?; close #2002
|
2014-04-04 10:54:46 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
28ab106292
|
Hash#replace to preserve order; close #2001
|
2014-04-04 10:50:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
653ddd6d3e
|
downto, upto, step to return Enumerator
|
2014-04-03 20:19:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b4043256d0
|
implement part of Array#<=> in C
|
2014-04-02 18:04:09 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
94effc6a37
|
implement Array comparisons by Ruby
|
2014-04-02 17:33:25 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1690fc4c99
|
implement Hash#== and eql? in Ruby
|
2014-04-01 14:56:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d9feed6703
|
move Array#inspect implementation to mrblib/array.rb
|
2014-04-01 14:31:39 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
cf58d0d3e9
|
move Hash#inspect implementation to mrblib/hash.rb
|
2014-04-01 14:21:40 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a85fdbdba4
|
according to JIS/ISO, Array is not Comparable
|
2014-03-31 00:50:16 +09:00 |
|
ksss
|
2981b4e3d9
|
Hash#__update fix typo
It's called by create Hash of over 126 keys
|
2014-03-24 08:43:44 +09:00 |
|
ksss
|
d9068f0583
|
Hash#{reject,reject!} fix yield value
|
2014-03-23 20:13:49 +09:00 |
|
ksss
|
d8fc05fcb9
|
Hash#{reject,reject!} support return Enumerator
|
2014-03-23 20:11:20 +09:00 |
|
ksss
|
d09e4475bf
|
Hash#{select,select!} fix yield value
|
2014-03-23 13:31:26 +09:00 |
|
ksss
|
5e4626c9ba
|
Hash#{select,select!} support return Enumerator
if non block given
|
2014-03-23 13:31:26 +09:00 |
|
ksss
|
5386cd9b9b
|
Hash#each_{key,value} support return Enumerator
if non block given
|
2014-03-23 00:22:22 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
041b5a9f67
|
reduce object allocation in __update
|
2014-03-21 21:53:50 +09:00 |
|
ksss
|
72fe192259
|
Fix behavior of Comparable methods
when <=> return nil
|
2014-03-21 11:58:47 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
2c44f96e78
|
reduce hash creation by using update method
|
2014-03-21 09:31:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
07d81a113d
|
enum methods to support multiple values; all?, any?, grep, include?, drop, drop_while, take, take_while, each_cons, each_slice, group_by, first, count
|
2014-03-19 15:36:55 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
2bf718faf8
|
Merge pull request #1882 from ksss/enum-find_all
Enumerable#find_all return Enumerator if non block given
|
2014-03-19 10:43:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
31b2980acb
|
Merge pull request #1880 from ksss/enum-each_with_index
Enumrable#each_with_index return Enumerator if non block given
|
2014-03-18 22:22:23 +09:00 |
|
Tomoyuki Sahara
|
4b4784f96f
|
rescue StopIteration only.
|
2014-03-18 19:02:38 +09:00 |
|
ksss
|
fd80d4ecdd
|
Enumerable#find_all return Enumerator if non block given
|
2014-03-17 23:32:31 +09:00 |
|
ksss
|
9abe413530
|
Enumrable#each_with_index return Enumerator if non block given
|
2014-03-17 22:31:40 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
26930ddc19
|
Merge branch 'refactor-enumerable.rb' of https://github.com/suzukaze/mruby into suzukaze-refactor-enumerable.rb
|
2014-03-17 08:45:05 +09:00 |
|
Jun Hiroe
|
bdeef827ac
|
Refactor Enumerable#include?
|
2014-03-17 01:18:45 +09:00 |
|
Jun Hiroe
|
a21088b2d7
|
Refactor Enumerable#any?
|
2014-03-17 01:18:44 +09:00 |
|
Jun Hiroe
|
b9632bce46
|
Refactor Enumerable#all?
|
2014-03-17 01:18:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5ac737cf88
|
add Enumerable#sort_by
|
2014-03-17 01:09:07 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
027d6407cc
|
make Enumerable methods to support multiple values; collect, detect, each_with_index, find_all, inject, max, min, partition, reject, sort
|
2014-03-17 00:53:08 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ed2fe64076
|
Enumerable#entries to support multiple values; close #1868
|
2014-03-17 00:34:47 +09:00 |
|
ksss
|
bc63518fa7
|
modify core method that return Enumerator object if not block given
|
2014-03-15 08:15:04 +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 |
|
Tomoyuki Sahara
|
9686890ab3
|
Fix Float#divmod.
|
2014-03-04 10:51:36 +09:00 |
|