Created
March 21, 2019 18:12
-
-
Save sajjadyousefnia/fd138e00976c43a9ad1d157ece77d966 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
inline fun <reified T> isA(value: Any) = value is T | |
>>> println(isA<String>("abc")) | |
true | |
>>> println(isA<String>(123)) | |
false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment