String
String.reverse(str)
String.upcase(str)
String.downcase(str)
String.capitalize(str)
String.starts_with?(str)
String.contains?(str, "search_str")
String.first(str)
String.at(str, index)
String.slice(str, start_index, end_index)
String.split("foo bar", "")
String.length("foo bar")
Atoms
An atom is a constant whose value is its own name
true
, false
, and nil
are atoms, but can skip :
Atoms are not garbage collected, so never convert user input to atoms
Last updated