small medium large xlarge

Generic-user-small
30 Oct 2015, 18:30
Audun Bjarne Tønnesen (5 posts)

I don’t see the difference between these two functions:

iex(21)> String.graphemes(“Someday we’re gonna love again”)

[“S”, “o”, “m”, “e”, “d”, “a”, “y”, “ “, “w”, “e”, “’”, “r”, “e”, “ “, “g”, “o”, “n”, “n”, “a”, “ “, “l”, “o”, “v”, “e”, “ “, “a”, “g”, “a”, “i”, “n”]

iex(22)> String.codepoints(“Someday we’re gonna love again”)

[“S”, “o”, “m”, “e”, “d”, “a”, “y”, “ “, “w”, “e”, “’”, “r”, “e”, “ “, “g”, “o”, “n”, “n”, “a”, “ “, “l”, “o”, “v”, “e”, “ “, “a”, “g”, “a”, “i”, “n”]