L
Size: a a a
L
VH
VH
VH
VH
DR
VH
DR
VH
AS
implicit class MyList[T: Numeric](private val xs: List[T]) {
def avg: Double = Numeric[T].toDouble(xs.sum) / xs.size
}
VH
implicit class MyList[T: Numeric](private val xs: List[T]) {
def avg: Double = Numeric[T].toDouble(xs.sum) / xs.size
}
M
object Node {
def apply[T: Ordering](key:T):Node[T] = new Node[T](key, new Empty[T], new Empty[T])
}
K
P
AT
GP
λ
λ
λ