Skip to content

Instantly share code, notes, and snippets.

@Nublo
Created October 7, 2018 14:57
Show Gist options
  • Save Nublo/a5e7b06efc1f53d9965e6396ffdeda4e to your computer and use it in GitHub Desktop.
Save Nublo/a5e7b06efc1f53d9965e6396ffdeda4e to your computer and use it in GitHub Desktop.
fun <T> reduceSame(xs: List<T>) = reduce(listOf<T>(), xs)
{ ys, s -> ys + s }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment