Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Substring/Maple/substring-1.maple
Normal file
4
Task/Substring/Maple/substring-1.maple
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
> n, m := 3, 5:
|
||||
> s := "The Higher, The Fewer!":
|
||||
> s[ n .. n + m - 1 ];
|
||||
"e Hig"
|
||||
5
Task/Substring/Maple/substring-2.maple
Normal file
5
Task/Substring/Maple/substring-2.maple
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
> s[ n .. -1 ] = s[ n .. ];
|
||||
"e Higher, The Fewer!" = "e Higher, The Fewer!"
|
||||
|
||||
> StringTools:-Drop( s, n - 1 );
|
||||
"e Higher, The Fewer!"
|
||||
5
Task/Substring/Maple/substring-3.maple
Normal file
5
Task/Substring/Maple/substring-3.maple
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
> s[ 1 .. -2 ] = s[ .. -2 ];
|
||||
"The Higher, The Fewer" = "The Higher, The Fewer"
|
||||
|
||||
> StringTools:-Chop( s );
|
||||
"The Higher, The Fewer"
|
||||
7
Task/Substring/Maple/substring-4.maple
Normal file
7
Task/Substring/Maple/substring-4.maple
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
> pos := searchtext( ",", s ):
|
||||
> s[ pos .. pos + m - 1 ];
|
||||
", The"
|
||||
|
||||
> pos := searchtext( "Higher", s ):
|
||||
> s[ pos .. pos + m - 1 ];
|
||||
"Highe"
|
||||
Loading…
Add table
Add a link
Reference in a new issue