Introduce 'takeUnless' function which is like 'takeIf' but with the predicate inverted.

#KT-7858
This commit is contained in:
Ilya Gorbunov
2017-02-09 22:24:45 +03:00
parent 9e1afe71f2
commit fee676a281
2 changed files with 9 additions and 0 deletions
@@ -23,4 +23,6 @@ class C {
// ORDER: nullableX
// ORDER: takeIf
// ORDER: takeIf
// ORDER: takeUnless
// ORDER: takeUnless
// ORDER: C