Wannabe Bool released
If Atom
, BitString
, Integer
and Float
values wanna be a boolean value, they can using to_boolean/1
function.
https://hex.pm/packages/wannabe_bool
import WannabeBool
to_boolean("true")
true
to_boolean(0)
false
Check all the documentation: https://hexdocs.pm/wannabe_bool
Read next Realtime Market-Data Updates with Elixir