#elixir
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 either.
If you want to change selection, open document below and click on "Move attachment"
Basic types - The Elixir programming languagedicate 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 <span>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 either. Atoms An atom is a constant whose value is its own name. Some other languages call these symbols. They are often useful to enumerate over distinct values, such as: iex> :apple :apple Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details