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)
Is there an idiomatic way to express this other than if !(mylist.contains(x)))
? I didn't see it mentioned in the Kotlin Control Flow docs.