Fold.fold: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/fold.bend as Fold Lines 239-242 of bend-toon-codec@0.1.0.0/src/fold.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/fold.bend&start_line=239&end_line=242 import Base import bend-toon-codec@0.1.0.0/src/json.bend as J # Fold keys of a value with at most `depth` segments per dotted key; a depth # below 2 folds nothing. def fold(+j: J.Json, +depth: U32) -> J.Json: fold.if(U32.is_lt(depth, 2), j, depth) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/fold.bend&name=fold.if https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/json.bend&name=Json