trait _order[A] extends AnyRef
Ordering
- Alphabetic
Inherited
- Stream._extend._order
- scala.AnyRef
- scala.Any
- Hide All
- Show All
Visibility
- Public
- All
Method
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
sort(implicit o: Ordering[A]): ~[A]
Sort
Sort
Sorts stream elements with provided Ordering
~~(5, 1, 4, 2, 3).sort.lp // Prints ~(1, 2, 3, 4, 5)
- Definition Classes
- _order
-
def
sortBy[B, C, D](f1: Mapping[A, B], f2: Mapping[A, C], f3: Mapping[A, D])(implicit arg0: Ordering[B], arg1: Ordering[C], arg2: Ordering[D]): ~[A]
Sort by three properties
Sort by three properties
Sorts pipeline on first property, then if indeterminate on second, etc...
- Definition Classes
- _order
-
def
sortBy[B, C](f1: Mapping[A, B], f2: Mapping[A, C])(implicit arg0: Ordering[B], arg1: Ordering[C]): ~[A]
Sort by two properties
Sort by two properties
Sorts pipeline on first property, and then, if indeterminate on second
- Definition Classes
- _order
-
def
sortBy[B](f: Mapping[A, B])(implicit o: Ordering[B]): ~[A]
Sort by property
Sort by property
Sorts pipeline on element's property, which is provided by given function
~~("aaaa", "bb", "ccc", "d").sortBy(_.length).lp // Output ~(d, bb, ccc, aaaa)
- Definition Classes
- _order
-
def
sortReversed(implicit o: Ordering[A]): ~[A]
Sort reversed
Sort reversed
Reverse sorts stream elements with provided Ordering
~~(5, 1, 4, 2, 3).sort.lp // Prints ~(5, 4, 3, 2, 1)
- Definition Classes
- _order
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Ordering Interface