| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Set/ |
Upload File : |
U:RDoc::AnyMethod[iI"divide:EFI"Set#divide;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"HDivides the set into a set of subsets according to the commonality ;TI" defined by the given block.;To:RDoc::Markup::BlankLine o;
; [I"FIf the arity of the block is 2, elements o1 and o2 are in common ;TI"Gif block.call(o1, o2) is true. Otherwise, elements o1 and o2 are ;TI"3in common if block.call(o1) == block.call(o2).;T@o;
; [I"
e.g.:;T@o: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")p set # => #<Set: {#<Set: {1}>,
;TI"1 # #<Set: {11, 9, 10}>,
;TI", # #<Set: {3, 4}>,
;TI"* # #<Set: {6}>}>
;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