def Placed.of
import bend-lint-rules@0.2.0.0/lib/text/main.bend as BendLintRulesimport Base
248def Placed.of(offsets: List<&2, U32>, +index: U32, out: List<&2, Placed>) -> List<&2, Placed>:
249 match offsets:
250 case Nil{}:
251 out
252 case Con{o, rest}:
253 Placed.of(rest, (index + 1: U32), Placed{index, o} <> out)