]> gitweb.factorcode.org Git - factor.git/commitdiff
combinators.extras: adding 4bi* and 4bi@.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 1 Oct 2013 21:02:56 +0000 (14:02 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 1 Oct 2013 21:02:56 +0000 (14:02 -0700)
extra/combinators/extras/extras.factor

index 4bb67a58356fe90816dd7684e44130896a0c5b06..81e49b89f31100ac5b2f37ca1e30be87be93b7cd 100644 (file)
@@ -30,6 +30,12 @@ MACRO: cleave-array ( quots -- )
 : 4bi ( w x y z p q -- )
     [ 4keep ] dip call ; inline
 
+: 4bi* ( s t u v w x y z p q -- )
+    [ 4dip ] dip call ; inline
+
+: 4bi@ ( s t u v w x y z quot -- )
+    dup 4bi* ; inline
+
 : 4tri ( w x y z p q r -- )
     [ [ 4keep ] dip 4keep ] dip call ; inline