Last active
December 24, 2015 18:27
-
-
Save tanishiking/6f00fee027b68a142879 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> 1 :: 2 :: 3 :: Nil | |
res22: List[Int] = List(1, 2, 3) | |
scala Stream.cons(1, Stream.cons(2, Stream.cons (3, Stream.empty))) | |
res23: Stream.Cons[Int] = Stream(1, ?) | |
scala> 1 #:: 2 #:: 3 #:: Stream.empty | |
res24: scala.collection.immutable.Stream[Int] = Stream(1, ?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment