跳轉到內容

Rebol 程式設計/scalar?

來自華夏公益教科書,自由的教科書
SCALAR? value 

如果值是任何型別的標量,則返回 TRUE。

SCALAR? 是一個函式值。

  • value -- (型別: 任何型別)

原始碼

[編輯 | 編輯原始碼]
scalar?: func [
    "Return TRUE if value is any type of scalar." 
    value [any-type!]
][
    found? find scalar! type? get/any 'value
]
華夏公益教科書