I need to convert a string to a floating point value or an integer. There was no method such as,
string_to_integer
Check Integer.parse/1 and Float.parse/1.
Integer.parse/1
Float.parse/1
How do I join two strings in a list with a space, like: ["StringA", "StringB"] becomes "StringA StringB"
In Elixir how do you check for type such as in Python: >>> a = "test" >>> type(a) <type 'str'> >>> b =10 >>> type(b) <type 'int'> I …
I was trying to add a new element into a list as follow: iex(8)> l = [3,5,7,7,8] ++ 3 [3, 5, 7, 7, 8 | 3] iex(9)> l [3, 5, 7, 7, 8 | 3] Why did I get on the 5th position like 8 | 3 What it does mean? And how can I add new element to …