Created
May 13, 2017 11:20
-
-
Save mrvisser/5bf409ac1d51795fd1dfc58a03ea2dde 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
+sealed trait MyList[+A] | |
+case class Cons[A](head: A, tail: MyList[A]) extends MyList[A] | |
+case object Nil extends MyList[Nothing] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment