math_choice.bend checks
raw source on the hub · import stelliferous@0.0.4.0/math_choice.bend as Math_choice
One of two values by a flag, and the extrema built on it, compiled for each type (docs/toolchain_rules.md F16).
1 import
import Base
Definitions
def larger source · line 10 · raw
@+left:F32 -> @+right:F32 -> F32
def smaller source · line 13 · raw
@+left:F32 -> @+right:F32 -> F32
def larger_word source · line 16 · raw
@+left:U32 -> @+right:U32 -> U32
Templates
template chosen source · line 5 · raw
@-A:Type -> @flag:Bool -> @yes:A -> @no:A -> A