1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

11 commits

Author SHA1 Message Date
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