Skip to content

Instantly share code, notes, and snippets.

@sfeatherstone
Created March 5, 2018 21:34
Show Gist options
  • Select an option

  • Save sfeatherstone/7be30517e7310061d3bacaaa72054f3e to your computer and use it in GitHub Desktop.

Select an option

Save sfeatherstone/7be30517e7310061d3bacaaa72054f3e to your computer and use it in GitHub Desktop.
//Silly simple way of making new array
fun catTwoIntArraysSimple(array1 :IntArray, array2 :IntArray) = array1 + array2
inline fun <reified T> catTwoArraysSimple(array1 :Array<T>, array2 :Array<T>) = array1 + array2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment