Function partition
fn partition<'a, A: 'a, I, F>(iter: I, pred: F) -> usize
where
I: IntoIterator<Item = &'a mut A>,
<I as >::IntoIter: DoubleEndedIterator,
F: FnMut(&A) -> bool
Partition a sequence using predicate pred so that elements
that map to true are placed before elements which map to false.
The order within the partitions is arbitrary.
Return the index of the split point.
use partition;
# // use repeated numbers to not promise any ordering
let mut data = ;
let split_index = partition;
assert_eq!;
assert_eq!;