KitchenSink v1.3.5 KitchenSink.Boolean View Source

this module is for Boolean functions

Link to this section Summary

Functions

Parse boolean either from string or integer, if it’s not a boolean then it returns :error

Link to this section Functions

Link to this function parse(value) View Source
parse(String.t | integer) :: boolean | :error

Parse boolean either from string or integer, if it’s not a boolean then it returns :error

iex> parse("True")
true
iex> parse("Lie")
:error