REBOL Programming/scalar?

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

USAGE:[edit]

SCALAR? value 

DESCRIPTION:[edit]

Return TRUE if value is any type of scalar.

SCALAR? is a function value.

ARGUMENTS[edit]

  • value -- (Type: any-type)

SOURCE CODE[edit]

scalar?: func [
    "Return TRUE if value is any type of scalar." 
    value [any-type!]
][
    found? find scalar! type? get/any 'value
]