author | immler@in.tum.de |
Thu, 19 Mar 2009 13:09:52 +0100 | |
changeset 34535 | 690927d66d8c |
parent 34532 | aaafe9c4180b |
child 34536 | f0df6a866aa7 |
--- a/src/Tools/jEdit/src/utils/LinearSet.scala Sun Mar 08 23:03:49 2009 +0100 +++ b/src/Tools/jEdit/src/utils/LinearSet.scala Thu Mar 19 13:09:52 2009 +0100 @@ -34,7 +34,7 @@ /* basic methods */ def next(elem: A) = body.get(elem) - + def prev(elem: A) = body.find(_._2 == elem).map(_._2) override def isEmpty: Boolean = !last_elem.isDefined def size: Int = if (isEmpty) 0 else body.size + 1