Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
12
Task/Substring/Ring/substring.ring
Normal file
12
Task/Substring/Ring/substring.ring
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
cStr = "a":"h" # 'abcdefgh'
|
||||
n = 3 m = 3
|
||||
# starting from n characters in and of m length
|
||||
See substr(cStr,n, m) + nl #=> cde
|
||||
# starting from n characters in, up to the end of the string
|
||||
See substr(cStr,n) + nl #=> cdefgh
|
||||
# whole string minus last character
|
||||
See substr(cstr,1,len(cStr)-1) + nl #=> abcdefg
|
||||
# starting from a known character within the string and of m length
|
||||
See substr(cStr,substr(cStr,"e"),m) +nl #=> efg
|
||||
# starting from a known substring within the string and of m length
|
||||
See substr(cStr,substr(cStr,"de"),m) +nl #=> def
|
||||
Loading…
Add table
Add a link
Reference in a new issue