Documentation

Batteries.Data.ByteSlice

@[reducible, inline]

Test whether a byte slice is empty.

Equations
Instances For
    @[reducible, inline]

    Returns the subslice obtained by removing the last element.

    Equations
    Instances For
      @[reducible, inline]

      Returns the subslice obtained by removing the first element.

      Equations
      Instances For
        @[inline]
        def ByteSlice.foldlM {m : Type u_1 → Type u_2} {β : Type u_1} [Monad m] (s : ByteSlice) (f : βUInt8m β) (init : β) :
        m β

        Folds a monadic function over a ByteSubarray from left to right.

        Equations
        Instances For
          @[inline]
          def ByteSlice.foldl {β : Type u_1} (s : ByteSlice) (f : βUInt8β) (init : β) :
          β

          Folds a function over a ByteSubarray from left to right.

          Equations
          Instances For
            @[specialize #[]]
            def ByteSlice.forIn {m : Type u_1 → Type u_2} {β : Type u_1} [Monad m] (s : ByteSlice) (init : β) (f : UInt8βm (ForInStep β)) :
            m β

            Implementation of forIn for a ByteSlice.

            Equations
            Instances For
              @[implicit_reducible]
              Equations
              @[implicit_reducible]
              Equations