TailSeq - laforge49/Asynchronous-Functional-Programming GitHub Wiki

TailSeq provides a fast means of filtering out all key/value pairs prior to a given start key. TailSeq[K, V] subclasses Sequence[K, V]. Its constructor takes two parameters: (1) the Sequence[K, V] that it wraps and (2) start: K.

Test code.

val tail = new TailSeq(new Range(0, 1000000), 999998)
Future(tail, Loop((key: Int, value: Int) => println(key+" "+value)))

Output.

999998 999998
999999 999999

TailSeqTest

Tutorial