REBOL Programming/last?

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

USAGE:[edit]

LAST? series 

DESCRIPTION:[edit]

Returns TRUE if the series length is 1.

LAST? is a function value.

ARGUMENTS:[edit]

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

SOURCE CODE[edit]

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