Rebol Programming/any-path?

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

USAGE:[edit | edit source]

ANY-PATH? value 

DESCRIPTION:[edit | edit source]

Return TRUE if value is any type of path.

ANY-PATH? is a function value.

ARGUMENTS[edit | edit source]

  • value -- (Type: any-type)

SOURCE CODE[edit | edit source]

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