all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
9
Task/Substring/Forth/substring.fth
Normal file
9
Task/Substring/Forth/substring.fth
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
2 constant Pos
|
||||
3 constant Len
|
||||
: Str ( -- c-addr u ) s" abcdefgh" ;
|
||||
|
||||
Str Pos /string drop Len type \ cde
|
||||
Str Pos /string type \ cdefgh
|
||||
Str 1- type \ abcdefg
|
||||
Str char d scan drop Len type \ def
|
||||
Str s" de" search 2drop Len type \ def
|
||||
Loading…
Add table
Add a link
Reference in a new issue