Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/SortedSet/cdesc-SortedSet.ri
Arrière
U:RDoc::NormalClass[iI"SortedSet:ET@I"Set;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"FSortedSet implements a Set that guarantees that its elements are ;TI"Fyielded in sorted order (according to the return values of their ;TI",#<=> methods) when iterating over them.;To:RDoc::Markup::BlankLine o; ;[I"HAll elements that are added to a SortedSet must respond to the <=> ;TI"method for comparison.;T@o; ;[ I"JAlso, all elements must be <em>mutually comparable</em>: <tt>el1 <=> ;TI"Iel2</tt> must not return <tt>nil</tt> for any elements <tt>el1</tt> ;TI"Aand <tt>el2</tt>, else an ArgumentError will be raised when ;TI""iterating over the SortedSet.;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim;[I"require "set" ;TI" ;TI"6set = SortedSet.new([2, 1, 5, 6, 4, 5, 3, 3, 3]) ;TI"ary = [] ;TI" ;TI"set.each do |obj| ;TI" ary << obj ;TI" end ;TI" ;TI"#p ary # => [1, 2, 3, 4, 5, 6] ;TI" ;TI"'set2 = SortedSet.new([1, 2, "3"]) ;TI"[set2.each { |obj| } # => raises ArgumentError: comparison of Fixnum with String failed;T:@format0: @fileI"lib/set.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@.@.cRDoc::TopLevel
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages