更好的Rebol语法比头部移除尾部(移除模具b)?

时间:2009-09-09 21:43:47

标签: rebol

我想将块转换为像这样的字符串

>> b: [field "field1" tab field "field2"]
== [field "field1" tab field "field2"]
>> head remove back tail (remove mold b)
== {field "field1" tab field "field2"}
>>

有比这更好的语法吗?

感谢。

1 个答案:

答案 0 :(得分:2)

模具/仅应该可以解决问题:

b: [field "field1" tab field "field2"]
mold/only b
== {field "field1" tab field "field2"}