Rebol Programming/last?

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

USAGE:[edit | edit source]

LAST? series 

DESCRIPTION:[edit | edit source]

Returns TRUE if the series length is 1.

LAST? is a function value.

ARGUMENTS:[edit | edit source]

  • series -- (Type: series port tuple bitset struct)

SOURCE CODE[edit | edit source]

last?: func [
    "Returns TRUE if the series length is 1." 
    series [series! port! tuple! bitset! struct!]
][1 = length? :series]