Seq.put_account: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/store/seq.bend as Seq Lines 181-185 of cswap-bend-cli@0.1.0.0/store/seq.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/store/seq.bend&start_line=181&end_line=185 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json # Record `rec` under slot `num` (replacing in place or appending) and list the # slot in `sequence`, kept sorted. def put_account(+seq: Json.Json, +num: String, +rec: Json.Json) -> Json.Json: Json.set("sequence", nums_json(insert_sorted(str_u32(num), seq_nums(seq))), Json.set("accounts", Json.set(num, rec, accounts_of(seq)), seq)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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/json.bend&name=set https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/seq.bend&name=accounts_of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/seq.bend&name=insert_sorted https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/seq.bend&name=nums_json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/seq.bend&name=seq_nums https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/seq.bend&name=str_u32