Documentation

Batteries.Lean.PersistentHashSet

@[implicit_reducible]
instance Lean.PersistentHashSet.instForInOfMonad_batteries {α : Type u_1} [BEq α] [Hashable α] {m : Type u_2 → Type u_3} [Monad m] :
ForIn m (PersistentHashSet α) α
Equations
  • One or more equations did not get rendered due to their size.
@[specialize #[]]
def Lean.PersistentHashSet.anyM {α : Type u_1} [BEq α] [Hashable α] {m : TypeType u_2} [Monad m] (s : PersistentHashSet α) (f : αm Bool) :
m Bool

Returns true if f returns true for any element of the set.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[inline]
    def Lean.PersistentHashSet.any {α : Type u_1} [BEq α] [Hashable α] (s : PersistentHashSet α) (f : αBool) :
    Bool

    Returns true if f returns true for any element of the set.

    Equations
    Instances For
      @[specialize #[]]
      def Lean.PersistentHashSet.allM {α : Type u_1} [BEq α] [Hashable α] {m : TypeType u_2} [Monad m] (s : PersistentHashSet α) (f : αm Bool) :
      m Bool

      Returns true if f returns true for all elements of the set.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[inline]
        def Lean.PersistentHashSet.all {α : Type u_1} [BEq α] [Hashable α] (s : PersistentHashSet α) (f : αBool) :
        Bool

        Returns true if f returns true for all elements of the set.

        Equations
        Instances For
          @[implicit_reducible]
          instance Lean.PersistentHashSet.instBEq_batteries {α : Type u_1} [BEq α] [Hashable α] :
          BEq (PersistentHashSet α)
          Equations
          def Lean.PersistentHashSet.insertMany {α : Type u_1} [BEq α] [Hashable α] {ρ : Type u_2} [ForIn Id ρ α] (s : PersistentHashSet α) (as : ρ) :
          PersistentHashSet α

          Insert all elements from a collection into a PersistentHashSet.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[inline]
            def Lean.PersistentHashSet.ofArray {α : Type u_1} [BEq α] [Hashable α] (as : Array α) :
            PersistentHashSet α

            Obtain a PersistentHashSet from an array.

            Equations
            Instances For
              @[inline]
              def Lean.PersistentHashSet.ofList {α : Type u_1} [BEq α] [Hashable α] (as : List α) :
              PersistentHashSet α

              Obtain a PersistentHashSet from a list.

              Equations
              Instances For
                @[inline]
                def Lean.PersistentHashSet.merge {α : Type u_1} [BEq α] [Hashable α] (s t : PersistentHashSet α) :
                PersistentHashSet α

                Merge two PersistentHashSets.

                Equations
                Instances For