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]