Setimp.csv_rows: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setimp.bend as Setimp Lines 91-98 of cswap-bend-cli@0.1.0.0/setimp.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&start_line=91&end_line=98 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def csv_rows(rows: List<&2, List<&2, String>>, +doc: Json.Json) -> Result<&2, &2, String, Json.Json>: match rows: case Nil{}: Done{doc} case Con{Con{k, Con{v, Nil{}}}, t}: csv_rows(t, set_path(String.split(k, '.'), typed(v), doc)) case Con{r, t}: Fail{"every csv row must be key,value"} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.split https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&name=set_path https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&name=typed