def array_work

bendvy-ecs-core@0.1.0.3 · decode_data.bend:126

import bendvy-ecs-core@0.1.0.3/decode_data.bend as DecodeData
import Base

126def array_work(+codec:Codec,items:List<&2,Raw>,+path:String,+index:U32,rest:List<&2,Work>) -> List<&2,Work>:
127  match items:
128    case []: rest
129    case value <> tail: Work{codec,value,path ++ "[" ++ U32.show(index) ++ "]"} <> array_work(codec,tail,path,U32.add(index,1),rest)

Uses (9)

Used by (1)