#elixir
Elixir provides a bunch of predicate functions to check for a value type. For example, the is_boolean/1
function can be used to check if a value is a boolean or not:
If you want to change selection, open document below and click on "Move attachment"
Basic types - The Elixir programming languagesplays the documentation for IEx.Helpers, which is where h and other functionality is defined. Booleans Elixir supports true and false as booleans: iex> true true iex> true == false false <span>Elixir provides a bunch of predicate functions to check for a value type. For example, the is_boolean/1 function can be used to check if a value is a boolean or not: iex> is_boolean(true) true iex> is_boolean(1) false You can also use is_integer/1, is_float/1 or is_number/1 to check, respectively, if an argument is an integer, a float, or eith Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details