Kotlin instanceOf Iterable
I want to verify that Any is Iterable
override fun funnyFunction(context: Any): Any {
if(context is Iterable)
// do something
}
Warning that i get is
One type argument expected. Use 'Iterable' if you don't want to
pass type arguments
In Java the code is
Object funnyFunction(final context: Object) {
if(context instanceof Iterable)
// do something
}
Anyone have idea how to do it?