Rebol Programming/scalar?

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

USAGE:

[edit | edit source]
SCALAR? value 

DESCRIPTION:

[edit | edit source]

Return TRUE if value is any type of scalar.

SCALAR? is a function value.

ARGUMENTS

[edit | edit source]
  • value -- (Type: any-type)

SOURCE CODE

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