new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
11
Task/Search-a-list/Forth/search-a-list.fth
Normal file
11
Task/Search-a-list/Forth/search-a-list.fth
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
include lib/row.4th
|
||||
|
||||
create haystack
|
||||
," Zig" ," Zag" ," Wally" ," Ronald" ," Bush" ," Krusty" ," Charlie"
|
||||
," Bush" ," Boz" ," Zag" NULL ,
|
||||
does>
|
||||
dup >r 1 string-key row 2>r type 2r> ." is "
|
||||
if r> - ." at " . else r> drop drop ." not found" then cr
|
||||
;
|
||||
|
||||
s" Washington" haystack s" Bush" haystack
|
||||
Loading…
Add table
Add a link
Reference in a new issue