Scalax
|
|
scalax/data/collection.scala
]
class
RichStream[a](val
s : scala.Stream[a])
extends
AnyRefMethod Summary | |
def
|
groupBy
[b](f : (a) => b) : scala.Stream[scala.Stream[a]]
This splits up the stream by using spanBy
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
groupBy[b](f : (a) => b) : scala.Stream[scala.Stream[a]]
[1..9].groupBy(_/3) == [[1,2],[3,4,5],[6,7,8]]
Scalax
|
|