Defs.nth4: def of lawful-words@0.1.0.0 Import: import lawful-words@0.1.0.0/defs.bend as Defs Lines 35-49 of lawful-words@0.1.0.0/defs.bend: https://jend.leeeet.dev/read.txt?path=lawful-words@0.1.0.0/defs.bend&start_line=35&end_line=49 import Base # The j-th of four values (j = 0 to 3; b3 from 3 up). def nth4(j: Nat, b0: U32, b1: U32, b2: U32, b3: U32) -> U32: match j: case 0n: b0 case 1n+p: match p: case 0n: b1 case 1n+q: match q: case 0n: b2 case 1n+t: b3 Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32