Function permutator::heap_permutation_sync
source · Expand description
Heap permutation which permutate variable d in place and call cb function
for each permutation done on d.
Parameter
dan Rc<RefCell<>> to mutable slice data to be permuted.cba callback function that will be called several times for each permuted value.
Warning
The permutation is done in place which mean the parameter d will be
mutated.
Notes
- The value passed to callback function will equals to value inside parameter
d.