KernelGather.gather_channels: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/kernel_gather.bend as KernelGather Lines 20-26 of stelliferous@0.0.2.0/kernel_gather.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/kernel_gather.bend&start_line=20&end_line=26 import Base def gather_channels(remaining: Nat,+channel: U32,+width: U32,+offset: U32,+output_positions: U32,+span: U32, owners: Array & Array) -> Array & Array: match remaining: case 0n: owners case 1n+rest: gather_channels(rest,(channel + 1 : U32),width,offset,output_positions,span, gather_channel(channel,width,offset,output_positions,span,owners)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/kernel_gather.bend&name=gather_channel