⚝
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 :
values_at-i.ri
U:RDoc::AnyMethod[iI"values_at:ETI"Array#values_at;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I":Returns a new \Array whose elements are the elements ;TI"/of +self+ at the given \Integer +indexes+.;To:RDoc::Markup::BlankLine o; ; [I"FFor each positive +index+, returns the element at offset +index+:;To:RDoc::Markup::Verbatim; [I"a = [:foo, 'bar', 2] ;TI"&a.values_at(0, 2) # => [:foo, 2] ;T:@format0o; ; [I"=The given +indexes+ may be in any order, and may repeat:;To;; [I"a = [:foo, 'bar', 2] ;TI"?a.values_at(2, 0, 1, 0, 2) # => [2, :foo, "bar", :foo, 2] ;T; 0o; ; [I"4Assigns +nil+ for an +index+ that is too large:;To;; [I"a = [:foo, 'bar', 2] ;TI":a.values_at(0, 3, 1, 3) # => [:foo, nil, "bar", nil] ;T; 0o; ; [I"6Returns a new empty \Array if no arguments given.;T@o; ; [I"JFor each negative +index+, counts backward from the end of the array:;To;; [I"a = [:foo, 'bar', 2] ;TI"(a.values_at(-1, -3) # => [2, :foo] ;T; 0o; ; [I"4Assigns +nil+ for an +index+ that is too small:;To;; [I"a = [:foo, 'bar', 2] ;TI"Ba.values_at(0, -5, 1, -6, 2) # => [:foo, nil, "bar", nil, 2] ;T; 0o; ; [I"5The given +indexes+ may have a mixture of signs:;To;; [I"a = [:foo, 'bar', 2] ;TI";a.values_at(0, -2, 1, -1) # => [:foo, "bar", "bar", 2];T; 0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I",array.values_at(*indexes) -> new_array ;T0[ I"(*args);T@=FI" Array;TcRDoc::NormalClass00