summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorstenman <stenman@epfl.ch>2003-07-09 23:09:28 +0000
committerstenman <stenman@epfl.ch>2003-07-09 23:09:28 +0000
commit4e426a62989d8140949ce94d123c56007917ffaf (patch)
tree7882105a3f5f737932871b9196913e2279c4d80e /sources
parentaf52fe5e148ce3328c07df4060dda61399d063d7 (diff)
downloadscala-4e426a62989d8140949ce94d123c56007917ffaf.tar.gz
scala-4e426a62989d8140949ce94d123c56007917ffaf.tar.bz2
scala-4e426a62989d8140949ce94d123c56007917ffaf.zip
Reverted to at in Streams
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/Stream.scala1
1 files changed, 1 insertions, 0 deletions
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