Extra v0.2.0 Kernel.Extra

Extensions to the standard library’s Kernel module.

Link to this section Summary

Functions

Coerces values into booleans

Link to this section Functions

Link to this function boolean(x)
boolean(any) :: boolean

Coerces values into booleans.

Examples

iex> import Kernel.Extra …> 12 |> boolean() true

iex> import Kernel.Extra …> nil |> boolean() false