! Copyright (C) 2013 John Benediktsson
! See http://factorcode.org/license.txt for BSD license
-USING: fry kernel math math.bitwise sequences ;
+USING: kernel math math.bitwise sequences ;
IN: math.combinatorics.bits
: next-permutation-bits ( v -- w )
while drop swap and ; inline
: reduce-permutation-bits ( ... bit-count bits identity quot: ( ... prev elt -- ... next ) -- ... result )
- [ -rot ] dip each-permutation-bits ; inline
+ -rotd each-permutation-bits ; inline