]> gitweb.factorcode.org Git - factor.git/commitdiff
math.combinatorics: minor fix to reduce-combinations stack effect.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 18 Apr 2013 14:17:36 +0000 (07:17 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 18 Apr 2013 14:17:36 +0000 (07:17 -0700)
basis/math/combinatorics/combinatorics.factor

index d5e782de6a78f9db145d13d1c374d18e09e99ac9..4f2e11144e908a751391577ca3f0ca55b5b31752 100644 (file)
@@ -204,7 +204,7 @@ PRIVATE>
     [ combinations-quot find drop ]
     [ drop pick [ combination ] [ 3drop f ] if ] 3bi ; inline
 
-: reduce-combinations ( ... seq k identity quot: ( ... prev elt -- next ) -- ... result )
+: reduce-combinations ( ... seq k identity quot: ( ... prev elt -- ... next ) -- ... result )
     [ -rot ] dip each-combination ; inline
 
 : all-subsets ( seq -- subsets )