Created
May 8, 2021 14:44
-
-
Save ziginsider/1a4926b016ccd4465486fc09e0a0ef4f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // (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