Documentation

Batteries.Lean.HashSet

@[specialize #[]]
def Std.HashSet.anyM {α : Type u_1} [BEq α] [Hashable α] {m : TypeType} [Monad m] (s : HashSet α) (f : αm Bool) :

O(n). Returns true if f returns true for any element of the set.

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

      O(n). Returns true if f returns true for all elements of the set.

      Equations
        Instances For
          instance Std.HashSet.instBEq_batteries {α : Type u_1} [BEq α] [Hashable α] :
          Equations