aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/forth2012/search/also.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/forth2012/search/also.frt')
-rw-r--r--amforth-6.5/common/lib/forth2012/search/also.frt8
1 files changed, 8 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/forth2012/search/also.frt b/amforth-6.5/common/lib/forth2012/search/also.frt
new file mode 100644
index 0000000..8934ce4
--- /dev/null
+++ b/amforth-6.5/common/lib/forth2012/search/also.frt
@@ -0,0 +1,8 @@
+\ duplicate first wordlist entry
+
+\ #require get-order.frt
+\ #require set-order.frt
+
+: also ( -- )
+ get-order over swap 1+ set-order
+;