src/Pure/General/scan.scala
changeset 45900 793bf5fa5fbf
parent 45252 6de58d947e57
child 46627 fbe2cb05bdb3
equal deleted inserted replaced
45899:df887263a379 45900:793bf5fa5fbf
    77       }
    77       }
    78 
    78 
    79 
    79 
    80     /* pseudo Set methods */
    80     /* pseudo Set methods */
    81 
    81 
    82     def iterator: Iterator[String] = content(main_tree, Nil).sortWith(_ <= _).iterator
    82     def iterator: Iterator[String] = content(main_tree, Nil).sorted.iterator
    83 
    83 
    84     override def toString: String = iterator.mkString("Lexicon(", ", ", ")")
    84     override def toString: String = iterator.mkString("Lexicon(", ", ", ")")
    85 
    85 
    86     def empty: Lexicon = Lexicon.empty
    86     def empty: Lexicon = Lexicon.empty
    87     def isEmpty: Boolean = main_tree.branches.isEmpty
    87     def isEmpty: Boolean = main_tree.branches.isEmpty