Why not provide an operator ? : in scala [closed]
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . There is an operator ? : in Java which can be used to select a value according to the boolean expression. For example, the expression