8 lines
300 B
Plaintext
8 lines
300 B
Plaintext
fun <T> Array<T>.filter(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
|
|
|
fun <T> Array<T>.filterNot(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
|
|
|
fun main(args: Array<String>) {
|
|
args.filterNot {<caret>it != ""}
|
|
}
|