Dtype.Half.values: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/dtype.bend as Dtype Lines 234-236 of bendtorch@1.3.0.0/dtype.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/dtype.bend&start_line=234&end_line=236 import Base # the first n 16-bit values of a packed array def Half.values(+n: Nat, a: Array) -> List<&2, U32>: unpairs_n(n, split_l(ul_list(read_u(Nat.sub(hwords(n), 1n), 0, Nil{}, Array.get(U32, a, 0))))) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=hwords https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=read_u https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=split_l https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=ul_list https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=unpairs_n