]> gitweb.factorcode.org Git - factor.git/commitdiff
math.combinatorics: fix map>assoc-combinations (shouldn't have been locals).
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 18 Apr 2013 16:04:16 +0000 (09:04 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 18 Apr 2013 16:04:47 +0000 (09:04 -0700)
basis/math/combinatorics/combinatorics.factor

index 4f2e11144e908a751391577ca3f0ca55b5b31752..1da0ad100d7b865c2cfe71b6484665c3d17a9894 100644 (file)
@@ -194,7 +194,7 @@ PRIVATE>
 : filter-combinations ( ... seq k quot: ( ... elt -- ... ? ) -- ... newseq )
     selector [ each-combination ] dip ; inline
 
-:: map>assoc-combinations ( ... seq k quot: ( ... elt -- ... key value ) exemplar -- ... assoc )
+: map>assoc-combinations ( ... seq k quot: ( ... elt -- ... key value ) exemplar -- ... assoc )
     [ combinations-quot ] dip map>assoc ; inline
 
 : all-combinations ( seq k -- seq' )