Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
5
Task/Substring/Elixir/substring.elixir
Normal file
5
Task/Substring/Elixir/substring.elixir
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
s = "abcdefgh"
|
||||
String.slice(s, 2, 3) #=> "cde"
|
||||
String.slice(s, 1..3) #=> "bcd"
|
||||
String.slice(s, -3, 2) #=> "fg"
|
||||
String.slice(s, 3..-1) #=> "defgh"
|
||||
Loading…
Add table
Add a link
Reference in a new issue