Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update CheatSheet.md #13

Merged
merged 1 commit into from

2 participants

ebolinger Lukas Rytz
ebolinger

Fixed typo on Stream example.

ebolinger ebolinger Update CheatSheet.md
Fixed typo on Stream example
bd30081
Lukas Rytz lrytz merged commit 85a0d85 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 21, 2012
  1. ebolinger

    Update CheatSheet.md

    ebolinger authored
    Fixed typo on Stream example
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  CheatSheet.md
2  CheatSheet.md
View
@@ -360,7 +360,7 @@ Scala defines several collection classes:
// Operations on Streams
val xs = Stream(1, 2, 3)
- val xs = Stream.cons(1, Stream.cons(2, Stream.empty)) // same as above
+ val xs = Stream.cons(1, Stream.cons(2, Stream.cons(3, Stream.empty))) // same as above
(1 to 1000).toStream // => Stream(1, ?)
x #:: xs // Same as Stream.cons(x, xs)
// In the Stream's cons operator, the second parameter (the tail)
Something went wrong with that request. Please try again.