scalax.data.collection

class RichStream

[source: scalax/data/collection.scala]

class RichStream[a](val s : scala.Stream[a])
extends AnyRef
Method 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]]
This splits up the stream by using spanBy

[1..9].groupBy(_/3) == [[1,2],[3,4,5],[6,7,8]]



Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.