]> gitweb.factorcode.org Git - factor.git/commitdiff
alien.data.map: fix use of _ for fry change.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 5 Oct 2019 21:32:35 +0000 (14:32 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 5 Oct 2019 21:33:05 +0000 (14:33 -0700)
extra/alien/data/map/map.factor

index 994eb3272be21f23661f9e72dd76f6cd10219adf..4b871ce5aebce35aadc33ab11c6568998dc7b7b4 100644 (file)
@@ -85,7 +85,8 @@ MACRO: unpack-params ( ins -- quot )
     [ c-type-count nip '[ _ firstn-unsafe ] ] map '[ _ spread ] ;
 
 MACRO: pack-params ( outs -- quot )
-    [ ] [ c-type-count nip dup [ [ ndip _ ] dip set-firstn ] 3curry ] reduce
+    [ ] [ c-type-count nip dup
+    [ [ ndip POSTPONE: _ ] dip set-firstn ] 3curry ] reduce
     fry [ call ] compose ;
 
 :: [data-map] ( ins outs param-quot -- quot )