Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -1,12 +0,0 @@
|
|||
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"
|
||||
|
||||
# UTF-8
|
||||
s = "αβγδεζηθ"
|
||||
String.slice(s, 2, 3) #=> "γδε"
|
||||
String.slice(s, 1..3) #=> "βγδ"
|
||||
String.slice(s, -3, 2) #=> "ζη"
|
||||
String.slice(s, 3..-1) #=> "δεζηθ"
|
||||
Loading…
Add table
Add a link
Reference in a new issue