Is there an extension function in the kotlin-std-l...
# getting-started
d
Is there an extension function in the kotlin-std-lib to do something like this but pass the type to extension function instead of writing the if-block