Equations
- xโยน.instDecidableEq_batteries xโ = decidable_of_decidable_of_iff โฏ
uget/uset #
empty #
push #
set #
copySlice #
append #
extract #
ofFn #
@[inline]
Equations
- ByteArray.ofFn f = Fin.foldl n (fun (acc : ByteArray) (i : Fin n) => acc.push (f i)) (ByteArray.emptyWithCapacity n)
Instances For
@[simp]
@[simp]
map/mapM #
@[inline]
unsafe def
ByteArray.mapMUnsafe
{m : Type โ Type u_1}
[Monad m]
(a : ByteArray)
(f : UInt8 โ m UInt8)
:
Unsafe optimized implementation of mapM.
This function is unsafe because it relies on the implementation limit that the size of an array is
always less than USize.size.
Equations
- a.mapMUnsafe f = ByteArray.mapMUnsafe.loop f a 0 a.usize
Instances For
@[specialize #[]]
unsafe def
ByteArray.mapMUnsafe.loop
{m : Type โ Type u_1}
[Monad m]
(f : UInt8 โ m UInt8)
(a : ByteArray)
(k s : USize)
:
Inner loop for mapMUnsafe.
Equations
- One or more equations did not get rendered due to their size.