Skip to content

Instantly share code, notes, and snippets.

@ziginsider
Created May 8, 2021 14:44
Show Gist options
  • Select an option

  • Save ziginsider/1a4926b016ccd4465486fc09e0a0ef4f to your computer and use it in GitHub Desktop.

Select an option

Save ziginsider/1a4926b016ccd4465486fc09e0a0ef4f to your computer and use it in GitHub Desktop.
// (1)
interface List<T> {
override fun get(index: Int): T
// ...
}
// (2)
val <T> x: T = someInit()
// (3)
fun <T> List<T>.filter(predicate: (T) -> Boolean): List<T>
// (4)
class ArrayList<T> : List<T> {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment