Limbs.split: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/poly1305/limbs.bend as Limbs Lines 75-80 of bend-collections@1.0.0.0/src/crypto/poly1305/limbs.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/poly1305/limbs.bend&start_line=75&end_line=80 import Base # Limb n (the top one) reduced to its low 2 bits, i.e. the value below 2^130 # when n = 16; quot is the rest of limb n, the multiple of 2^130. def split(n: Nat, +xs: List<&2, U32>) -> List<&2, U32>: match n: case 0n: [U32.and(hd0(xs), 3)] case 1n+k: hd0(xs) <> split(k, tl(xs)) Uses (6): 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=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/poly1305/limbs.bend&name=hd0 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/poly1305/limbs.bend&name=tl