]> gitweb.factorcode.org Git - factor.git/commitdiff
add an iota
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 10 Jun 2009 14:45:48 +0000 (09:45 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 10 Jun 2009 14:45:48 +0000 (09:45 -0500)
basis/compiler/tree/dead-code/branches/branches.factor

index fd1b2d5adb4cbfe7b1208ae410356a6a69932c1d..f027ccdb61d12d5311c51f1e94e8a8752813a4fb 100644 (file)
@@ -32,7 +32,7 @@ M: #branch remove-dead-code*
     pad-with-bottom >>phi-in-d drop ;
 
 : live-value-indices ( values -- indices )
-    [ length ] keep live-values get
+    [ length iota ] keep live-values get
     '[ _ nth _ key? ] filter ; inline
 
 : drop-indexed-values ( values indices -- node )