Define self referencing Scala class (recursive class)
How to define this class in scala data NestedList a = Elem a | List [NestedList a] This in Haskell means a NestedList is a Type which can contain either Elem or another NestedList. Is it possible...