func v0.4.1 Func.Bool

Summary

Functions

Case analysis for the Bool type. Inspired by Haskell. See Data.Bool)

Functions

bool(x, y, b)
bool(any, any, boolean) :: any

Case analysis for the Bool type. Inspired by Haskell. See Data.Bool).

iex> Func.Bool.bool(1, 2, false)
1
iex> Func.Bool.bool(1, 2, true)
2