diff --git a/basis/math/combinatorics/combinatorics.factor b/basis/math/combinatorics/combinatorics.factor index 907aab6e2c..efa2d2ee07 100644 --- a/basis/math/combinatorics/combinatorics.factor +++ b/basis/math/combinatorics/combinatorics.factor @@ -153,7 +153,7 @@ HINTS: (next-permutation) array ; PRIVATE> : next-permutation ( seq -- seq ) - dup [ ] [ drop (next-permutation) ] if-empty ; + dup empty? [ (next-permutation) ] unless ; ! Combinadic-based combination methodology