Nobuyoshi Nakada
|
3dccb716da
|
Use `defined?(yield)` and `SIZED_ENUMERATOR`
Prefer built-in features over method calls that may be overridden.
|
2024-02-17 23:28:00 +09:00 |
Burdette Lamar
|
65f5435540
|
[DOC] Doc compliance (#9955)
|
2024-02-14 10:47:42 -05:00 |
Takashi Kokubun
|
c84237f953
|
Rewrite Array#each in Ruby using Primitive (#9533)
|
2024-01-23 20:09:57 +00:00 |
Burdette Lamar
|
8c5b9ebf71
|
[DOC] Improve doc guide compliance (#8221)
|
2023-08-15 14:43:58 -04:00 |
Nobuyoshi Nakada
|
0e5aecea11
|
[DOC] Move docs of `Array#first` and `Array#last` to array.rb
|
2023-05-10 15:47:39 +09:00 |
Koichi Sasada
|
0112a5b342
|
`Array#first` and `Array#last` in Ruby
|
2023-03-23 14:03:12 +09:00 |
Koichi Sasada
|
a24eeee556
|
Use `Primitive.mandatory_only?` for `Array#sample`
|
2021-11-15 15:58:56 +09:00 |
Nobuyoshi Nakada
|
f8bf766877
|
[DOC] Additional to Array#sample [ci skip]
* The requirement to the +n+ argument.
* The order of the result array. [Misc #14147]
|
2021-09-22 14:17:09 +09:00 |
Yusuke Endoh
|
a237617a5b
|
array.rb: Remove unnecessary phrase from rdoc
A fix to 54fb8fb62a
|
2020-11-12 16:59:59 +09:00 |
Yusuke Endoh
|
a02ba60466
|
array.rb: show examples whether `Array#shuffle!` has side effect or not
Partially revert 54fb8fb62a
|
2020-11-12 16:59:59 +09:00 |
Burdette Lamar
|
54fb8fb62a
|
Comply with guide for method doc: array.c (#3506)
Methods:
any?
all?
one?
none?
sum
shuffle!
shuffle
sample
|
2020-09-02 14:02:34 -05:00 |
Nobuyoshi Nakada
|
63aadc237f
|
[Feature #16254] Use `Primitive.func` style
|
2020-06-19 18:46:55 +09:00 |
Nobuyoshi Nakada
|
d863f4bccd
|
[Feature #16254] Use `__builtin.func` style
|
2020-06-19 18:46:55 +09:00 |
Nobuyoshi Nakada
|
a2e215fea4
|
Removed useless shebang and executable bit [ci skip]
|
2020-02-01 23:25:46 +09:00 |
Nobuyoshi Nakada
|
b1eae5e15e
|
Cleaned an excess semicolon up [ci skip]
which has not been removed when translated from C.
|
2020-01-27 09:49:13 +09:00 |
Nobuyoshi Nakada
|
d4e1d4e94e
|
Moved Array#sample to rbinc
|
2020-01-26 19:45:58 +09:00 |
Nobuyoshi Nakada
|
29eb1b1602
|
Moved Array#shuffle and Array#shuffle! to rbinc
|
2020-01-26 19:40:34 +09:00 |