jeggy
12/19/2019, 2:34 PMinfix operator fun contains(option: Option): Boolean
I would like to be able to write both cases if (data contains MyOption) and if (data !contains MyOption)gian
12/19/2019, 2:35 PM!ingian
12/19/2019, 2:36 PMif (MyOption in data)jeggy
12/19/2019, 2:36 PMgian
12/19/2019, 2:36 PMcontains you are overriding ingian
12/19/2019, 2:36 PMplus and you can also use +jeggy
12/19/2019, 2:40 PMSergei Dubrov [JB]
12/19/2019, 2:49 PMjeggy
12/19/2019, 2:53 PMgian
12/19/2019, 2:56 PMjeggy
12/19/2019, 2:58 PMgian
12/19/2019, 2:59 PMa in b is the same as b contains a
The "operator form" is injeggy
12/19/2019, 3:00 PMjeggy
12/19/2019, 3:02 PMgian
12/19/2019, 3:14 PM