2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
17
Task/Substring/Elena/substring.elena
Normal file
17
Task/Substring/Elena/substring.elena
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#import system.
|
||||
#import extensions.
|
||||
|
||||
#symbol program =
|
||||
[
|
||||
#var s := "0123456789".
|
||||
#var n := 3.
|
||||
#var m := 2.
|
||||
#var c := #51.
|
||||
#var z := "345".
|
||||
|
||||
console writeLine:(s Substring:m &at:n).
|
||||
console writeLine:(s Substring:(s length - n) &at:n).
|
||||
console writeLine:(s Substring:(s length - 1) &at:0).
|
||||
console writeLine:(s Substring:m &at:(s indexOf:c &at:0)).
|
||||
console writeLine:(s Substring:m &at:(s indexOf:z &at:0)).
|
||||
].
|
||||
Loading…
Add table
Add a link
Reference in a new issue