REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: offset?

offset?  series1  series2

Returns the offset between two series positions.


series1 [series!]

series2 [series!]

See also:

index?   length?   head   head?   tail   tail?   pick   skip  


Return the difference of the indexes for two positions within a series.

str: "abcd"
p1: next str
print offset? str p1
str: "abcd"
p1: next str
p2: find str "d"
print offset? p1 p2

  TOC < Back Next > - WIP Wiki Feedback Admin