Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/String-length/Elixir/string-length-1.elixir
Normal file
3
Task/String-length/Elixir/string-length-1.elixir
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
name = "J\x{332}o\x{332}s\x{332}e\x{301}\x{332}"
|
||||
byte_size(name)
|
||||
# => 14
|
||||
3
Task/String-length/Elixir/string-length-2.elixir
Normal file
3
Task/String-length/Elixir/string-length-2.elixir
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
name = "J\x{332}o\x{332}s\x{332}e\x{301}\x{332}"
|
||||
Enum.count(String.codepoints(name))
|
||||
# => 9
|
||||
3
Task/String-length/Elixir/string-length-3.elixir
Normal file
3
Task/String-length/Elixir/string-length-3.elixir
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
name = "J\x{332}o\x{332}s\x{332}e\x{301}\x{332}"
|
||||
String.length(name)
|
||||
# => 4
|
||||
Loading…
Add table
Add a link
Reference in a new issue