Rebol 编程/换行
外观
< Rebol 编程
NEW-LINE block value /all /skip size
在块内设置或清除换行符。
NEW-LINE 是一个原生值。
- block -- 要更改标记的块中的位置(类型:block)
- value -- 设置 TRUE 为换行符。(类型:any)
- /all -- 将标记设置/清除到块的末尾
- /skip -- 定期将标记设置/清除到块的末尾
- size -- (类型:integer)
new-line: native[ "Sets or clears the new-line marker within a block." block [block!] "Position in block to change marker" value "Set TRUE for newline." /all "Set/clear marker to end of block" /skip {Set/clear marker periodically to the end of the block} size [integer!] ]
>> a: [ 1 2] == [1 2] >> new-line a true == [ 1 2 ] >> new-line/all a true == [ 1 2 ] >> new-line/all a false == [1 2]