package kotlin class Array class IntArray class CharArray /** * Returns true if foo. */ fun IntArray.foo(predicate: (Int) -> Boolean): Boolean = false /** * Returns true if foo. */ fun CharArray.foo(predicate: (Char) -> Boolean): Boolean = false /** * Returns true if foo. */ fun Array.foo(predicate: (T) -> Boolean): Boolean = false