跳轉到內容

Rebol 程式設計/index?

來自華夏公益教科書,開放的書籍,開放的世界
INDEX? series /xy 

返回系列中當前位置的索引號。

INDEX? 是一個動作值。

  • 系列 -- (型別:系列埠)
  • /xy -- 返回索引作為 XY 偏移對。

原始碼

[編輯 | 編輯原始碼]
index?: native[
    {Returns the index number of the current position in the series.} 
    series [series! port!] 
    /xy "Returns index as an XY pair offset."
]
華夏公益教科書