RosettaCodeData/Task/Binary-strings/Forth/binary-strings-2.fth
Ingy döt Net 86c034bb8b new files
2013-04-10 12:38:42 -07:00

6 lines
163 B
Forth

: empty? ( str len -- ? ) nip 0= ;
: +c ( c str len -- ) + c! ;
: replace-bytes ( from to str len -- )
bounds do
over i c@ = if dup i c! then
loop 2drop ;