⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.25
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Array
/
Edit File: rotate%21-i.ri
U:RDoc::AnyMethod[iI"rotate!:ETI"Array#rotate!;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"ZRotates +self+ in place by moving elements from one end to the other; returns +self+.;To:RDoc::Markup::BlankLine o; ; [I"LWhen no argument given, rotates the first element to the last position:;To:RDoc::Markup::Verbatim; [I"!a = [:foo, 'bar', 2, 'bar'] ;TI",a.rotate! # => ["bar", 2, "bar", :foo] ;T:@format0o; ; [I"1When given a non-negative \Integer +count+, ;TI"<rotates +count+ elements from the beginning to the end:;To;; [I"a = [:foo, 'bar', 2] ;TI"a.rotate!(2) ;TI"a # => [2, :foo, "bar"] ;T; 0o; ; [I"HIf +count+ is large, uses <tt>count % array.size</tt> as the count:;To;; [I"a = [:foo, 'bar', 2] ;TI"a.rotate!(20) ;TI"a # => [2, :foo, "bar"] ;T; 0o; ; [I"3If +count+ is zero, returns +self+ unmodified:;To;; [I"a = [:foo, 'bar', 2] ;TI"a.rotate!(0) ;TI"a # => [:foo, "bar", 2] ;T; 0o; ; [I"OWhen given a negative Integer +count+, rotates in the opposite direction, ;TI"from end to beginning:;To;; [I"a = [:foo, 'bar', 2] ;TI"a.rotate!(-2) ;TI"a # => ["bar", 2, :foo] ;T; 0o; ; [I"XIf +count+ is small (far from zero), uses <tt>count % array.size</tt> as the count:;To;; [I"a = [:foo, 'bar', 2] ;TI"a.rotate!(-5) ;TI"a # => ["bar", 2, :foo];T; 0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"8array.rotate! -> self array.rotate!(count) -> self ;T0[ I"(*args);T@@FI" Array;TcRDoc::NormalClass00
Simpan