⚝
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
/
Set
/
View File Name :
divide-i.ri
U:RDoc::AnyMethod[iI"divide:ETI"Set#divide;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"cDivides the set into a set of subsets according to the commonality defined by the given block.;To; ; [I"°If the arity of the block is 2, elements o1 and o2 are in common if block.call(o1, o2) is true. Otherwise, elements o1 and o2 are in common if block.call(o1) == block.call(o2).;To:RDoc::Markup::Verbatim; [I"require 'set' ;TI"*numbers = Set[1, 3, 4, 6, 9, 10, 11] ;TI"5set = numbers.divide { |i,j| (i - j).abs == 1 } ;TI")set #=> #
, ;TI"1 # #
, ;TI", # #
, ;TI"* # #
}> ;T:@format0o; ; [I"0Returns an enumerator if no block is given.;T: @fileI"lib/set.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(&func);T@FI"Set;TcRDoc::NormalClass00