fn combine_cells(lhs: Vec<(usize, usize)>, rhs: Vec<(usize, usize)>) -> Vec<(usize, usize)> {
    lhs.into_iter()
        .chain(rhs.into_iter())
        .collect::<BTreeSet<_>>()
        .into_iter()
        .collect()
}
/// Combines 2 sets of cells into one.
///
/// Dublicates are removed from the output set.
Combines 2 sets of cells into one.
Dublicates are removed from the output set.
Combines 2 sets of cells into one . Dublicates are removed from the output set .
fn combine_cells(lhs: Vec<(usize, usize)>, rhs: Vec<(usize, usize)>) -> Vec<(usize, usize)> {
    lhs.into_iter()
        .chain(rhs.into_iter())
        .collect::<BTreeSet<_>>()
        .into_iter()
        .collect()
}
fn combine_cells ( lhs : Vec < ( usize , usize ) > , rhs : Vec < ( usize , usize ) > ) -> Vec < ( usize , usize ) > { lhs . into_iter ( ) . chain ( rhs . into_iter ( ) ) . collect :: < BTreeSet < _ > > ( ) . into_iter ( ) . collect ( ) }
Combines 2 sets of cells into one.
Combines 2 sets of cells into one .
lhs
Vec<(usize, usize)>
rhs
Vec<(usize, usize)>