Split the frozen pre-migration table module so value operations have a single authority in std-collections and GFM serialization stays in std-data. The split keeps every function body byte-identical and records the baseline value assertions; the public value-operation path moves from std:data/table to std:collections/table with no compatibility forwarder. Refs cflmy/marqdo#9, cflmy/marqdo-std-collections#1
763 B
763 B
import
| import | ||
|---|---|---|
|
@exec table
main
数据 = 表(["名称", "分数"], "甲", 87], ["乙", 92], ["丙", 71)
选择 = table_lib.选择列(数据, 1)
过滤 = table_lib.过滤数值大于(数据, 1, 80)
排序 = table_lib.排序(数据, 1)
追加 = table_lib.追加行(数据, ["丁", 65])
设置 = table_lib.设置单元格(数据, 0, 1, 99)
左 = 表(["名称", "分数"], "甲", 87], ["乙", 92)
右 = 表(["名称", "等级"], "乙", "A"], ["甲", "B")
连接 = table_lib.连接(左, 右, 0, 0)
分组 = table_lib.分组(表(["类别", "值"], "a", 1], ["b", 2], ["a", 3), 0, 1)
return [选择, 过滤, 排序, 追加, 设置, 连接, 分组, 数据]