Skip to content

Instantly share code, notes, and snippets.

View agenovese's full-sized avatar

Angelo Genovese agenovese

View GitHub Profile
abstract class Strategy[T, V]() {
def doSomething(x: Int): V
def unDoSomething(x: V): T
}
class StrategyOne() extends Strategy[Int, String] {
def doSomething(x: Int): String = {"..."}
def unDoSomething(x: String): Int = {1}
}