]> gitweb.factorcode.org Git - factor.git/commitdiff
shuffle less
authorAlex Maestas <git@se30.xyz>
Wed, 15 Mar 2023 07:07:37 +0000 (07:07 +0000)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 21 Aug 2023 21:28:15 +0000 (14:28 -0700)
core/generic/hook/hook.factor

index b2926aa3687364e3b54a93180e75a4ef48367627..b635c6bea70f6634144fe0b3669e3670c20f4140 100644 (file)
@@ -28,6 +28,6 @@ M: hook-generic effective-method
 M: hook-combination make-consult-quot
     drop          ! combination no longer necessary
     [ drop ] 2dip ! consultation no longer necessary
-    dup "combination" word-prop var>> ! (quot word var)
-    -rot ! (var quot word)
+    [ "combination" word-prop var>> ] keep ! (quot var word)
+    [ swap ] dip ! (var quot word)
     '[ _ _ call swap [ _ execute ] with-variable ] ;