Named native sum destructors #
The standard sum encoding begins with a constructor bit. These total destructors retain the tag test, payload-tail transducer and conditional default substitution. The opposite-constructor default is explicit, so clients can extract a typed payload without a decoder callback or an invalid cast.
Main definitions #
Turing.MultiTapeTM.Internal.NativeCompiler.sumLeftD: left payload or an explicit default.Turing.MultiTapeTM.Internal.NativeCompiler.sumRightD: right payload or an explicit default.Turing.MultiTapeTM.Internal.NativeCompiler.optionGetD: optional payload or an explicit default.Turing.MultiTapeTM.Internal.NativeCompiler.listHeadD,.listGetDUnary: total standard-list access with an explicit default.
def Turing.MultiTapeTM.Internal.NativeCompiler.optionGetD {Alpha : Type u_1} (default : Alpha) (enc : Alpha ↪ List Bool) :
Extract an optional payload, using the explicit default on none.
def Turing.MultiTapeTM.Internal.NativeCompiler.listIsEmpty {Alpha : Type u_1} (enc : Alpha ↪ List Bool) :
Test whether a standard encoded list is empty.
def Turing.MultiTapeTM.Internal.NativeCompiler.listHeadD {Alpha : Type u_1} (default : Alpha) (enc : Alpha ↪ List Bool) :
First list element, or the explicit default on the empty list.
def Turing.MultiTapeTM.Internal.NativeCompiler.listGetDUnary {Alpha : Type u_1} (default : Alpha) (enc : Alpha ↪ List Bool) :
Unary-indexed list access, including the direct suffix scan and total head default.