Skip to content

Instantly share code, notes, and snippets.

@jordanlewis
Created January 28, 2012 03:55
Show Gist options
  • Save jordanlewis/1692508 to your computer and use it in GitHub Desktop.
Save jordanlewis/1692508 to your computer and use it in GitHub Desktop.
PFDS catenate
def catenate[A](xs: List[A], ys: List[A]) : List[A] = xs match {
case Nil => ys
case x::xs => x :: (catenate(xs, ys))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment