Given Kotlin's list lookup syntax,
if (x in myList)
as opposed to idiomatic Java,
if (myList.contains(x))
how can one express negation? The compiler doesn't like either of these:
if (x not in mylist)
if !(x in mylist)
除了if !(mylist.contains(x)))
之外,还有其他惯用的表达方式吗?我没看到Kotlin Control Flow docs.人中提到过