Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.45
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby32 /
share /
ri /
system /
Enumerable /
Delete
Unzip
Name
Size
Permission
Date
Action
all%3f-i.ri
1.86
KB
-rw-r--r--
2026-04-07 17:42
any%3f-i.ri
1.81
KB
-rw-r--r--
2026-04-07 17:42
cdesc-Enumerable.ri
10.38
KB
-rw-r--r--
2026-04-07 17:42
chain-i.ri
533
B
-rw-r--r--
2026-04-07 17:42
chunk-i.ri
3.92
KB
-rw-r--r--
2026-04-07 17:42
chunk_while-i.ri
2.26
KB
-rw-r--r--
2026-04-07 17:42
collect-i.ri
808
B
-rw-r--r--
2026-04-07 17:42
collect_concat-i.ri
1.04
KB
-rw-r--r--
2026-04-07 17:42
compact-i.ri
526
B
-rw-r--r--
2026-04-07 17:42
count-i.ri
1.13
KB
-rw-r--r--
2026-04-07 17:42
cycle-i.ri
1.2
KB
-rw-r--r--
2026-04-07 17:42
detect-i.ri
1.06
KB
-rw-r--r--
2026-04-07 17:42
drop-i.ri
713
B
-rw-r--r--
2026-04-07 17:42
drop_while-i.ri
815
B
-rw-r--r--
2026-04-07 17:42
each_cons-i.ri
888
B
-rw-r--r--
2026-04-07 17:42
each_entry-i.ri
1.16
KB
-rw-r--r--
2026-04-07 17:42
each_slice-i.ri
889
B
-rw-r--r--
2026-04-07 17:42
each_with_index-i.ri
1.11
KB
-rw-r--r--
2026-04-07 17:42
each_with_object-i.ri
862
B
-rw-r--r--
2026-04-07 17:42
entries-i.ri
510
B
-rw-r--r--
2026-04-07 17:42
filter-i.ri
851
B
-rw-r--r--
2026-04-07 17:42
filter_map-i.ri
886
B
-rw-r--r--
2026-04-07 17:42
find-i.ri
1.16
KB
-rw-r--r--
2026-04-07 17:42
find_all-i.ri
930
B
-rw-r--r--
2026-04-07 17:42
find_index-i.ri
1.13
KB
-rw-r--r--
2026-04-07 17:42
first-i.ri
1.1
KB
-rw-r--r--
2026-04-07 17:42
flat_map-i.ri
1.1
KB
-rw-r--r--
2026-04-07 17:42
grep-i.ri
1.11
KB
-rw-r--r--
2026-04-07 17:42
grep_v-i.ri
1.15
KB
-rw-r--r--
2026-04-07 17:42
group_by-i.ri
1
KB
-rw-r--r--
2026-04-07 17:42
include%3f-i.ri
956
B
-rw-r--r--
2026-04-07 17:42
inject-i.ri
5.64
KB
-rw-r--r--
2026-04-07 17:42
lazy-i.ri
1.19
KB
-rw-r--r--
2026-04-07 17:42
map-i.ri
750
B
-rw-r--r--
2026-04-07 17:42
max-i.ri
2.66
KB
-rw-r--r--
2026-04-07 17:42
max_by-i.ri
1.54
KB
-rw-r--r--
2026-04-07 17:42
member%3f-i.ri
995
B
-rw-r--r--
2026-04-07 17:42
min-i.ri
2.65
KB
-rw-r--r--
2026-04-07 17:42
min_by-i.ri
1.54
KB
-rw-r--r--
2026-04-07 17:42
minmax-i.ri
1.46
KB
-rw-r--r--
2026-04-07 17:42
minmax_by-i.ri
966
B
-rw-r--r--
2026-04-07 17:42
none%3f-i.ri
1.77
KB
-rw-r--r--
2026-04-07 17:42
one%3f-i.ri
1.93
KB
-rw-r--r--
2026-04-07 17:42
partition-i.ri
1.26
KB
-rw-r--r--
2026-04-07 17:42
reduce-i.ri
5.47
KB
-rw-r--r--
2026-04-07 17:42
reject-i.ri
894
B
-rw-r--r--
2026-04-07 17:42
reverse_each-i.ri
1.01
KB
-rw-r--r--
2026-04-07 17:42
select-i.ri
851
B
-rw-r--r--
2026-04-07 17:42
slice_after-i.ri
1.62
KB
-rw-r--r--
2026-04-07 17:42
slice_before-i.ri
5.34
KB
-rw-r--r--
2026-04-07 17:42
slice_when-i.ri
2.85
KB
-rw-r--r--
2026-04-07 17:42
sort-i.ri
1.52
KB
-rw-r--r--
2026-04-07 17:42
sort_by-i.ri
3.39
KB
-rw-r--r--
2026-04-07 17:42
sum-i.ri
1.45
KB
-rw-r--r--
2026-04-07 17:42
take-i.ri
584
B
-rw-r--r--
2026-04-07 17:42
take_while-i.ri
820
B
-rw-r--r--
2026-04-07 17:42
tally-i.ri
1.23
KB
-rw-r--r--
2026-04-07 17:42
to_a-i.ri
527
B
-rw-r--r--
2026-04-07 17:42
to_h-i.ri
1004
B
-rw-r--r--
2026-04-07 17:42
to_set-i.ri
413
B
-rw-r--r--
2026-04-07 17:42
uniq-i.ri
986
B
-rw-r--r--
2026-04-07 17:42
zip-i.ri
2.5
KB
-rw-r--r--
2026-04-07 17:42
Save
Rename
U:RDoc::AnyMethod[iI"reduce:ETI"Enumerable#reduce;TF:privateo:RDoc::Markup::Document:@parts[7o:RDoc::Markup::Paragraph; [I"7Returns an object formed from operands via either:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I" A method named by +symbol+.;To;;0; [o; ; [I"-A block to which each operand is passed.;T@o; ; [I")With method-name argument +symbol+, ;TI"(combines operands using the method:;T@o:RDoc::Markup::Verbatim; [ I"%# Sum, without initial_operand. ;TI"#(1..4).inject(:+) # => 10 ;TI""# Sum, with initial_operand. ;TI"#(1..4).inject(10, :+) # => 20 ;T:@format0o; ; [I"4With a block, passes each operand to the block:;T@o;; [ I"0# Sum of squares, without initial_operand. ;TI"4(1..4).inject {|sum, n| sum + n*n } # => 30 ;TI"-# Sum of squares, with initial_operand. ;TI"4(1..4).inject(2) {|sum, n| sum + n*n } # => 32 ;T;0o; ; [I"<b>Operands</b>;T@o; ; [I"1If argument +initial_operand+ is not given, ;TI"Bthe operands for +inject+ are simply the elements of +self+. ;TI"&Example calls and their operands:;T@o;; ;;[ o;;0; [o;; : NOTE;[o;;[I"<tt>(1..4).inject(:+)</tt>;T; [o; ; [I"<tt>[1, 2, 3, 4]</tt>.;To;;0; [o;; ;;[o;;[I" <tt>(1...4).inject(:+)</tt>;T; [o; ; [I"<tt>[1, 2, 3]</tt>.;To;;0; [o;; ;;[o;;[I"#<tt>('a'..'d').inject(:+)</tt>;T; [o; ; [I"#<tt>['a', 'b', 'c', 'd']</tt>.;To;;0; [o;; ;;[o;;[I"$<tt>('a'...'d').inject(:+)</tt>;T; [o; ; [I"<tt>['a', 'b', 'c']</tt>.;T@o; ; [I"QExamples with first operand (which is <tt>self.first</tt>) of various types:;T@o;; [ I"# Integer. ;TI".(1..4).inject(:+) # => 10 ;TI"# Float. ;TI"0[1.0, 2, 3, 4].inject(:+) # => 10.0 ;TI"# Character. ;TI"2('a'..'d').inject(:+) # => "abcd" ;TI"# Complex. ;TI"2[Complex(1, 2), 3, 4].inject(:+) # => (8+2i) ;T;0o; ; [I"-If argument +initial_operand+ is given, ;TI"Kthe operands for +inject+ are that value plus the elements of +self+. ;TI""Example calls their operands:;T@o;; ;;[ o;;0; [o;; ;;[o;;[I"#<tt>(1..4).inject(10, :+)</tt>;T; [o; ; [I"<tt>[10, 1, 2, 3, 4]</tt>.;To;;0; [o;; ;;[o;;[I"$<tt>(1...4).inject(10, :+)</tt>;T; [o; ; [I"<tt>[10, 1, 2, 3]</tt>.;To;;0; [o;; ;;[o;;[I"(<tt>('a'..'d').inject('e', :+)</tt>;T; [o; ; [I"(<tt>['e', 'a', 'b', 'c', 'd']</tt>.;To;;0; [o;; ;;[o;;[I")<tt>('a'...'d').inject('e', :+)</tt>;T; [o; ; [I"#<tt>['e', 'a', 'b', 'c']</tt>.;T@o; ; [I"6Examples with +initial_operand+ of various types:;T@o;; [I"# Integer. ;TI"0(1..4).inject(2, :+) # => 12 ;TI"# Float. ;TI"2(1..4).inject(2.0, :+) # => 12.0 ;TI"# String. ;TI"7('a'..'d').inject('foo', :+) # => "fooabcd" ;TI"# Array. ;TI"B%w[a b c].inject(['x'], :push) # => ["x", "a", "b", "c"] ;TI"# Complex. ;TI"5(1..4).inject(Complex(2, 2), :+) # => (12+2i) ;T;0o; ; [I"(<b>Combination by Given \Method</b>;T@o; ; [I"4If the method-name argument +symbol+ is given, ;TI".the operands are combined by that method:;T@o;; ;;[ o;;0; [o; ; [I"0The first and second operands are combined.;To;;0; [o; ; [I"4That result is combined with the third operand.;To;;0; [o; ; [I"5That result is combined with the fourth operand.;To;;0; [o; ; [I"And so on.;T@o; ; [I"JThe return value from +inject+ is the result of the last combination.;T@o; ; [I"<This call to +inject+ computes the sum of the operands:;T@o;; [I"(1..4).inject(:+) # => 10 ;T;0o; ; [I"#Examples with various methods:;T@o;; [I"# Integer addition. ;TI".(1..4).inject(:+) # => 10 ;TI"# Integer multiplication. ;TI".(1..4).inject(:*) # => 24 ;TI"&# Character range concatenation. ;TI"2('a'..'d').inject('', :+) # => "abcd" ;TI"## String array concatenation. ;TI"7%w[foo bar baz].inject('', :+) # => "foobarbaz" ;TI"# Hash update. ;TI"@h = [{foo: 0, bar: 1}, {baz: 2}, {bat: 3}].inject(:update) ;TI"1h # => {:foo=>0, :bar=>1, :baz=>2, :bat=>3} ;TI")# Hash conversion to nested arrays. ;TI",h = {foo: 0, bar: 1}.inject([], :push) ;TI"#h # => [[:foo, 0], [:bar, 1]] ;T;0o; ; [I"&<b>Combination by Given Block</b>;T@o; ; [I"?If a block is given, the operands are passed to the block:;T@o;; ;;[ o;;0; [o; ; [I"9The first call passes the first and second operands.;To;;0; [o; ; [I":The second call passes the result of the first call, ;TI""along with the third operand.;To;;0; [o; ; [I":The third call passes the result of the second call, ;TI"#along with the fourth operand.;To;;0; [o; ; [I"And so on.;T@o; ; [I"QThe return value from +inject+ is the return value from the last block call.;T@o; ; [I")This call to +inject+ gives a block ;TI"Bthat writes the memo and element, and also sums the elements:;T@o;; [ I"&(1..4).inject do |memo, element| ;TI". p "Memo: #{memo}; element: #{element}" ;TI" memo + element ;TI"end # => 10 ;T;0o; ; [I"Output:;T@o;; [I""Memo: 1; element: 2" ;TI""Memo: 3; element: 3" ;TI""Memo: 6; element: 4" ;T;0o; ; [I"9Enumerable#reduce is an alias for Enumerable#inject.;T: @fileI"enum.c;T:0@omit_headings_from_table_of_contents_below000[ I"(p1 = v1, p2 = v2);T@FI"Enumerable;TcRDoc::NormalModule0[@ FI"inject;T