Traverses the given iterator and stores the emitted values in a {name}HashSet.
If the iterator is not finite, this function might run forever. Given {givenInstance}Finite α Id,
the variant {lean}it.ensureTermination.toHashSet always terminates after finitely many steps.
Instances For
Traverses the given iterator and stores the emitted values in a HashSet.
This variant terminates after finitely many steps and requires a proof that the iterator is
finite. If such a proof is not available, consider using Iter.toHashSet.
Instances For
Traverses the given iterator and stores the emitted values in a {name}ExtHashSet.
If the iterator is not finite, this function might run forever. Given {givenInstance}Finite α Id,
the variant {lean}it.ensureTermination.toExtHashSet always terminates after finitely many steps.
Equations
- it.toExtHashSet = it.toIterM.toExtHashSet.run
Instances For
Traverses the given iterator and stores the emitted values in a ExtHashSet.
This variant terminates after finitely many steps and requires a proof that the iterator is
finite. If such a proof is not available, consider using Iter.toExtHashSet.
Equations
- it.toExtHashSet = it.it.toExtHashSet
Instances For
Traverses the given iterator and stores the emitted values in a {name}TreeSet.
If the iterator is not finite, this function might run forever. Given {givenInstance}Finite α Id,
the variant {lean}it.ensureTermination.toTreeSet cmp always terminates after finitely many steps.
Instances For
Traverses the given iterator and stores the emitted values in a TreeSet.
This variant terminates after finitely many steps and requires a proof that the iterator is
finite. If such a proof is not available, consider using Iter.toTreeSet.
Instances For
Traverses the given iterator and stores the emitted values in a {name}ExtTreeSet.
If the iterator is not finite, this function might run forever. Given {givenInstance}Finite α Id,
the variant {lean}it.ensureTermination.toExtTreeSet cmp always terminates after finitely many steps.
Equations
- it.toExtTreeSet cmp = (it.toIterM.toExtTreeSet cmp).run
Instances For
Traverses the given iterator and stores the emitted values in a ExtTreeSet.
This variant terminates after finitely many steps and requires a proof that the iterator is
finite. If such a proof is not available, consider using Iter.toExtTreeSet.
Equations
- it.toExtTreeSet cmp = it.it.toExtTreeSet cmp