boolean, []→⊤, []→⊤
Source: /avail/Avail/Foundation/Control Structures
Categories: Control Structures, Conditionals
Given a predicate value and two functions, invoke one of them and answer its result.
Position | Name | Type | Description | |
---|---|---|---|---|
Parameters | ||||
1 | predicate | boolean | A predicate value. | |
2 | falseFunction | []→⊤ | The function to invoke if predicate is false. | |
3 | trueFunction | []→⊤ | The function to invoke if trueFunction is true. | |
Returns | ⊤ | If predicate is false, then the value produced by invoking falseFunction; otherwise, the value produced by invoking trueFunction. |