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.

Arguments:

series1 [series!]

series2 [series!]

See also:

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

Description

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

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


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin