Skip to content

Instantly share code, notes, and snippets.

@jacekkolodziejski
Created October 16, 2013 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacekkolodziejski/7011249 to your computer and use it in GitHub Desktop.
Save jacekkolodziejski/7011249 to your computer and use it in GitHub Desktop.
object S99_P14 {
def duplicate[T](ts: Seq[T]): Seq[T] = ts.flatMap(e => List(e, e))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment