Helper function for constructing if-elif-elif-...-elif as an expression.
Parameters: |
|
---|---|
Return type: | return type of any thenClause or the elseClause |
Returns: | if any predicate returns True, the result of the corresponding thenClause, else the result of elseClause |