Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Record.make 从列表中创建记录:
declare L=[z [a b] [1 2]] {Record.make L.1 L.2 0}
但出现错误:
Expected type: feature At argument: 1
如何使第二个参数 L.2 成为“特征”类型?我假设 L.2 是一个 [ab] 列表。
Record.make使用新的(即未绑定的)值创建记录。例如:
Record.make
R = {Record.make label [a b]}
也许你想要List.toRecord:
List.toRecord
R = {List.toRecord label [a#1 b#2]}