"Not" predicate

Report a typo

Suppose you have an originalPredicate: (Char) -> Boolean predicate.
It is necessary to complete the declaration of the notPredicate predicate; the predicate takes the Char variable.

The notPredicate predicate returns the opposite of the originalPredicate.

Write a program in Kotlin
val notPredicate: (Char) -> Boolean = TODO("Provide implementation")
___

Create a free account to access the full topic