diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2022-01-29 17:58:41 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2022-01-29 17:58:41 +0200 |
| commit | d2c46077f56c3b0a8dd7c34924c3ccb80fed892b (patch) | |
| tree | 1a11e00bfd96a95e3b7313fa7620f734c70d183d /samples/list.sample | |
| parent | 12dbaa90ae2f8c43fd69caaf7d1665ca0182b962 (diff) | |
Add debug flag, phrase handling words
Diffstat (limited to 'samples/list.sample')
| -rw-r--r-- | samples/list.sample | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/samples/list.sample b/samples/list.sample new file mode 100644 index 0000000..914522f --- /dev/null +++ b/samples/list.sample @@ -0,0 +1,17 @@ +define prepend + $prepend_val ! + $prepend_phrase ! + '[ $prepend_val @ $prepend_phrase @ unphrase '] phrase + $prepend_val forget $prepend_phrase forget + ; + +define append + $append_val ! + $append_phrase ! + '[ $append_phrase @ unphrase $append_val @ '] phrase + $append_val forget $append_phrase forget + ; + +[ 2 3 ] 1 prepend . +[ 2 3 ] 4 append . +[ 1 2 3 ] pop . .
\ No newline at end of file |
