From 4e426a62989d8140949ce94d123c56007917ffaf Mon Sep 17 00:00:00 2001 From: stenman Date: Wed, 9 Jul 2003 23:09:28 +0000 Subject: Reverted to at in Streams --- sources/scala/Stream.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/scala/Stream.scala b/sources/scala/Stream.scala index 586851be0f..7be860553b 100644 --- a/sources/scala/Stream.scala +++ b/sources/scala/Stream.scala @@ -37,6 +37,7 @@ trait Stream[+a] extends Seq[a] { else tail.drop(n-1); def apply(n: int) = drop(n).head; + def at(n: int) = drop(n).head; def takeWhile(p: a => Boolean): Stream[a] = if (isEmpty || !p(head)) Stream.empty -- cgit v1.2.3