https://kotlinlang.org logo
d

denis.st

03/30/2016, 11:09 PM
i'm trying to reimplement ternary operation 😄
val fontSize = (fontSize < 0) then { Math.min(width, height) / 2 } otherwise { fontSize }