跳轉到內容

Rebol 程式設計/type?

來自華夏公益教科書,自由的教科書
TYPE? value /word 

返回一個值的型別。

TYPE? 是一個原生值。

  • value -- (型別:任何型別)
  • /word -- 返回作為字詞的型別。

原始碼

[編輯 | 編輯原始碼]
type?: native[
    "Returns a value's datatype." 
    value [any-type!] 
    /word "Returns the datatype as a word."
]
華夏公益教科書