Skip to main content

Module set

Module set 

Source
Expand description

Set operations on iterators and streams.

Sorted variants require their inputs to be ascending under a total order and preserve multiplicity. The unsorted [intersection] runs in O(n*m) and is provided for convenience when sorting is unavailable.

Modulesยง

difference_sorted_stream2 ๐Ÿ”’
intersection ๐Ÿ”’
intersection_sorted ๐Ÿ”’
intersection_sorted_stream2 ๐Ÿ”’

Functionsยง

difference_sorted_stream2
Difference of sets
intersection
Intersection of sets
intersection_sorted
Intersection of sets
intersection_sorted_stream2
Intersection of sets
poll_head ๐Ÿ”’
Lazily fill the cached head of stream into peeked and return a borrow.