Answers for "elixir get last x characters of string"

0

elixir get last x characters of string

iex(1)> String.slice("Sergio", 1..-1)
"ergio"
iex(2)> String.slice("Sergio", 0..-3)                
"Serg"
Posted by: Guest on April-15-2021

Code answers related to "elixir get last x characters of string"

Browse Popular Code Answers by Language