A reverse linked-list, as an enumeration in Dotty: enum Tsil[+T] { case Lin case Snoc(init: Tsil[T], last: T) }
-
-
-
Replying to @kubukoz @propensive
because this one looks like what you'd normally do with a sealed trait / object / case class to me
1 reply 0 retweets 0 likes -
-
Replying to @propensive
I'm just worried about the syntax that (judging by the sample) would only work inside an enum
2 replies 0 retweets 0 likes -
Replying to @kubukoz @propensive
in particular, the lack of "object" and "class" next to "case" :P
1 reply 0 retweets 0 likes
Replying to @kubukoz
Though `case` already has two distinct uses. A third isn't such a stretch... ;)
10:21 AM - 18 May 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.