david-wg2
08/13/2019, 9:48 AMif (pin?.length != 36) throw Exception()
// pin is smart cast here
if (pin?.length !in (8..36)) throw Exception()
// pin is not smart cast here
Dico
08/13/2019, 9:55 AMoperator fun contains(value: Int)
Dico
08/13/2019, 9:56 AMdiesieben07
08/13/2019, 9:56 AMDico
08/13/2019, 9:56 AMx == null || x ...
is way more readablediesieben07
08/13/2019, 9:56 AMcontract {
returns(true) implies(element != null)
}
Dico
08/13/2019, 10:22 AMDico
08/13/2019, 10:23 AM