跳至內容

Rebol 程式設計/cp

來自華夏公益教科書
CP value /part range /deep 

返回一個值的副本。

CP 是一個動作值。

  • -- 通常是一個序列 (型別:序列 埠 位集)
  • /part -- 限制到給定長度或位置。
    • 範圍 -- (型別:數字 序列 埠 對)
  • /deep -- 也複製塊內的序列值。

原始碼

[編輯 | 編輯原始碼]
cp: native[
    "Returns a copy of a value." 
    value [series! port! bitset!] "Usually a series" 
    /part "Limits to a given length or position." 
    range [number! series! port! pair!] 
    /deep "Also copies series values within the block."
]

華夏公益教科書