跳轉到內容

Rebol 程式設計/刪除

來自華夏公益教科書,自由的教科書
REMOVE series /part range 

從一個序列中移除值,並在移除後返回。

REMOVE 是一個動作值。

  • 系列 -- (型別:系列 埠 位集 無)
  • /part -- 移除到給定長度或位置。
    • 範圍 -- (型別:數字 系列 埠 對)

原始碼

[編輯 | 編輯原始碼]
remove: native[
    {Removes value(s) from a series and returns after the remove.} 
    series [series! port! bitset! none!] 
    /part "Removes to a given length or position." 
    range [number! series! port! pair!]
]
華夏公益教科書