You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
laforge49 edited this page Jul 31, 2011
·
3 revisions
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)))