Documentation

Batteries.Data.Fin.Basic

def Fin.clamp (n m : Nat) :
Fin (m + 1)

min n m as an element of Fin (m + 1)

Equations
Instances For
    @[deprecated Array.finRange]
    def Fin.enum (n : Nat) :

    Alias of Array.finRange.


    finRange n is the array of all elements of Fin n in order.

    Equations
    Instances For
      @[deprecated List.finRange]
      def Fin.list (n : Nat) :
      List (Fin n)

      Alias of List.finRange.


      finRange n lists all elements of Fin n in order

      Equations
      Instances For