跳到內容

Rebol 程式設計/複製

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

返回值的副本。

COPY 是一個動作值。

  • value -- 通常是序列(型別:序列埠位集)
  • /part -- 限制為給定長度或位置。
    • range -- (型別:數字序列埠對)
  • /deep -- 也會複製塊中的序列值。

原始碼

[編輯 | 編輯原始碼]
copy: 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."
]

華夏公益教科書