⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Array
/
View File Name :
max-i.ri
U:RDoc::AnyMethod[iI"max:ETI"Array#max;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I""Returns one of the following:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I",The maximum-valued element from +self+.;To;;0; [o; ; [I"BA new \Array of maximum-valued elements selected from +self+.;To:RDoc::Markup::BlankLine o; ; [I"XWhen no block is given, each element in +self+ must respond to method
<=>
;TI"with an \Integer.;T@o; ; [I"BWith no argument and no block, returns the element in +self+ ;TI"6having the maximum value per method
<=>
:;To:RDoc::Markup::Verbatim; [I"[0, 1, 2].max # => 2 ;T:@format0o; ; [I"aWith an argument \Integer +n+ and no block, returns a new \Array with at most +n+ elements, ;TI"1in descending order per method
<=>
:;To;; [I"([0, 1, 2, 3].max(3) # => [3, 2, 1] ;TI"([0, 1, 2, 3].max(6) # => [3, 2, 1] ;T;0o; ; [I">When a block is given, the block must return an \Integer.;T@o; ; [I"cWith a block and no argument, calls the block
self.size-1
times to compare elements; ;TI"@returns the element having the maximum value per the block:;To;; [I"C['0', '00', '000'].max {|a, b| a.size <=> b.size } # => "000" ;T;0o; ; [I"WWith an argument +n+ and a block, returns a new \Array with at most +n+ elements, ;TI"'in descending order per the block:;To;; [I"M['0', '00', '000'].max(2) {|a, b| a.size <=> b.size } # => ["000", "00"];T;0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"array.max -> element array.max {|a, b| ... } -> element array.max(n) -> new_array array.max(n) {|a, b| ... } -> new_array ;T0[ I"(*args);T@?FI" Array;TcRDoc::NormalClass00