Module fusion.stdlib.ternary

A single function to act as a ternary, right to left

Functions

ternary (condition, is_if, is_else) Return one of two values based on initial condition


Functions

ternary (condition, is_if, is_else)
Return one of two values based on initial condition

Parameters:

  • condition boolean
  • is_if Value to return if condition is truthy
  • is_else Value to return if condition is not truthy
generated by LDoc 1.4.6 Last updated 2016-12-23 15:45:05