跳轉到內容

Rebol 程式設計/last?

來自華夏公益教科書,自由的教科書
LAST? series 

如果序列長度為 1,則返回 TRUE。

LAST? 是一個函式值。

  • series -- (型別: series port tuple bitset struct)

原始碼

[編輯 | 編輯原始碼]
last?: func [
    "Returns TRUE if the series length is 1." 
    series [series! port! tuple! bitset! struct!]
][1 = length? :series]
華夏公益教科書