跳轉到內容

Rebol 程式設計/reduce

來自華夏公益教科書
REDUCE value /only words 

評估表示式或程式碼塊表示式並返回結果。

REDUCE 是一個原生值。

  • -- (型別:任何)
  • /only -- 僅評估詞語和路徑,不評估函式
    • 詞語 -- 可選的未評估詞語(關鍵字)(型別:程式碼塊 無)

原始碼

[編輯 | 編輯原始碼]
reduce: native[
    {Evaluates an expression or block expressions and returns the result.} 
    value 
    /only "Only evaluate words and paths, not functions" 
    words [block! none!] "Optional words that are not evaluated (keywords)"
]
華夏公益教科書