pub fn union(&self) -> Partition {
        let intervals: Vec<ContiguousIntegerSet<i64>> = self
            .partitions
            .iter()
            .flat_map(|p| p.get_intervals_by_ref().clone())
            .collect();
        OrderedIntegerSet::from_contiguous_integer_sets(intervals)
    }
/// Converts the collection of partitions into a single `Partition`
/// consisting of the same integer elements.
Converts the collection of partitions into a single `Partition`
consisting of the same integer elements.
Converts the collection of partitions into a single ` Partition ` consisting of the same integer elements .
pub fn union(&self) -> Partition {
        let intervals: Vec<ContiguousIntegerSet<i64>> = self
            .partitions
            .iter()
            .flat_map(|p| p.get_intervals_by_ref().clone())
            .collect();
        OrderedIntegerSet::from_contiguous_integer_sets(intervals)
    }
pub fn union ( & self ) -> Partition { let intervals : Vec < ContiguousIntegerSet < i64 > > = self . partitions . iter ( ) . flat_map ( | p | p . get_intervals_by_ref ( ) . clone ( ) ) . collect ( ) ; OrderedIntegerSet :: from_contiguous_integer_sets ( intervals ) }
Converts the collection of partitions into a single `Partition`
consisting of the same integer elements.
Converts the collection of partitions into a single ` Partition ` consisting of the same integer elements .
&self
&self