HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Array/min-i.ri
U:RDoc::AnyMethod[iI"min:ETI"Array#min;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 minimum-valued element from +self+.;To;;0;	[o;
;	[I"BA new \Array of minimum-valued elements selected from +self+.;To:RDoc::Markup::BlankLineo;
;	[I"XWhen no block is given, each element in +self+ must respond to method <tt><=></tt> ;TI"with an \Integer.;T@o;
;	[I"BWith no argument and no block, returns the element in +self+ ;TI"6having the minimum value per method <tt><=></tt>:;To:RDoc::Markup::Verbatim;	[I"[0, 1, 2].min # => 0
;T:@format0o;
;	[I"^With \Integer argument +n+ and no block, returns a new \Array with at most +n+ elements, ;TI"0in ascending order per method <tt><=></tt>:;To;;	[I"([0, 1, 2, 3].min(3) # => [0, 1, 2]
;TI"+[0, 1, 2, 3].min(6) # => [0, 1, 2, 3]
;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 <tt>self.size-1</tt> times to compare elements; ;TI"@returns the element having the minimum value per the block:;To;;	[I"B['0', '00', '000'].min { |a, b| a.size <=> b.size } # => "0"
;T;0o;
;	[I"WWith an argument +n+ and a block, returns a new \Array with at most +n+ elements, ;TI"&in ascending order per the block:;To;;	[I"([0, 1, 2, 3].min(3) # => [0, 1, 2]
;TI"*[0, 1, 2, 3].min(6) # => [0, 1, 2, 3];T;0:
@fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"|array.min -> element
array.min { |a, b| ... } -> element
array.min(n) -> new_array
array.min(n) { |a, b| ... } -> new_array
;T0[I"(*args);T@@FI"
Array;TcRDoc::NormalClass00