math.combinatorics: faster combinations by inlining next-combination.
parent
f4ade1c5f2
commit
e9c6bf6b9a
|
@ -213,9 +213,7 @@ INSTANCE: combinations immutable-sequence
|
|||
1 [-] seq increment-rest
|
||||
] [
|
||||
seq increment-last
|
||||
] if* seq ;
|
||||
|
||||
HINTS: next-combination array fixnum ;
|
||||
] if* seq ; inline
|
||||
|
||||
:: combinations-quot ( seq k quot -- seq quot' )
|
||||
seq length :> n
|
||||
|
|
Loading…
Reference in New Issue