Skip to content

Instantly share code, notes, and snippets.

View XLPI's full-sized avatar
😌

Alex "XLPI" Korchagin XLPI

😌
View GitHub Profile
package repeat
abstract class MyList[+A] {
def head: A
def tail: MyList[A]
def isEmpty: Boolean
def add[B >: A](element: B): MyList[B]
def printElements: String
override def toString: String = "[" + printElements + "]"