Jump to content

Rebol Programming/offset?

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
OFFSET? series1 series2 

DESCRIPTION:

[edit | edit source]

Returns the offset between two series positions.

OFFSET? is a function value.

ARGUMENTS:

[edit | edit source]
  • series1 -- (Type: series)
  • series2 -- (Type: series)

SOURCE CODE

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