Rebol 程式設計/first+
外觀
FIRST+ 'word
返回序列的第一個元素,並遞增序列索引。
FIRST+ 是一個函式值。
- word -- Word 必須是一個序列。(型別:字 paren)
- 捕獲
first+: func [
{Return FIRST of series, and increment the series index.}
[catch]
'word [word! paren!] "Word must be a series."
][
if paren? :word [set/any 'word do :word]
throw-on-error [also pick get word 1 set word next get word]
]