August 2018
Beginner
178 pages
4h 56m
English
Just as with any other type, extension functions have to be imported if they won't be used. Our isPowerOf2 extension is defined in the quickstart.kotlin.extensions package, so we'd import it in the file where we want to use it:
import quickstart.kotlin.extensions.isPowerOf2
Read now
Unlock full access