A reverse linked-list, as an enumeration in Dotty: enum Tsil[+T] { case Lin case Snoc(init: Tsil[T], last: T) }
Yeah, it's another exception... like a for-comprehension or a partial function. Or an import list...
-
-
I guess I'll get used to it :P I was expecting to see something like type List[+T] = Nil | Cons(h: T, tail: List[T])
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.