Cloned from Valerie Henderson's course page
Command | Description |
---|---|
man {command} |
Type man rm to read the manual for the rm command. |
whatis {command} |
Give short description of command. |
Cloned from Valerie Henderson's course page
Command | Description |
---|---|
man {command} |
Type man rm to read the manual for the rm command. |
whatis {command} |
Give short description of command. |
def mergeSort[T <: Ordered[T]](xs:List[T]): List[T] = { | |
def merge(xs:List[T], ys:List[T]): List[T] = { | |
(xs,ys) match { | |
case (Nil,_) => ys | |
case (_,Nil) => xs | |
case (x::xs1, y::ys1) => { | |
if (x < y) { | |
x::merge(xs1,ys) | |
} else { | |
y::merge(xs,ys1) |