TraversalCells.map: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/traversal_cells.bend as TraversalCells Lines 30-35 of stelliferous@0.0.2.0/traversal_cells.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/traversal_cells.bend&start_line=30&end_line=35 import Base import stelliferous@0.0.2.0/traversal_loop.bend as Loop # `cells` rounds from `position`; the scratch array holds 64 cells. def map(~Owner: Type,~Cell: Data,~Context: Data,~gather: Owner -> U32 -> Context -> Owner & Cell, ~scatter: Owner -> U32 -> Cell -> Owner,~width: U32, cells: Nat,position: U32,context: Context,values: Owner,scratch: Array) -> Owner: output(~Owner,~Cell,~Context,Loop.run(~State,~step(~Owner,~Cell,~Context,~gather,~scatter,~width), cells,State{values,scratch,position,0,context})) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array 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=stelliferous@0.0.2.0/traversal_cells.bend&name=State https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/traversal_cells.bend&name=output https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/traversal_cells.bend&name=step https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/traversal_loop.bend&name=run