REBOL Programming/offset?

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

OFFSET? series1 series2 

DESCRIPTION:[edit]

Returns the offset between two series positions.

OFFSET? is a function value.

ARGUMENTS:[edit]

  • series1 -- (Type: series)
  • series2 -- (Type: series)

SOURCE CODE[edit]

offset?: func [
    "Returns the offset between two series positions." 
    series1 [series!] 
    series2 [series!]
][
    subtract index? series2 index? series1
]