Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Substring/Seed7/substring.seed7
Normal file
14
Task/Substring/Seed7/substring.seed7
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
$ include "seed7_05.s7i";
|
||||
|
||||
const proc: main is func
|
||||
local
|
||||
const string: stri is "abcdefgh";
|
||||
const integer: N is 2;
|
||||
const integer: M is 3;
|
||||
begin
|
||||
writeln(stri[N len M]);
|
||||
writeln(stri[N ..]);
|
||||
writeln(stri[.. pred(length(stri))]);
|
||||
writeln(stri[pos(stri, 'c') len M]);
|
||||
writeln(stri[pos(stri, "de") len M]);
|
||||
end func;
|
||||
Loading…
Add table
Add a link
Reference in a new issue