REBOL Programming/any-path?

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

USAGE:[edit]

ANY-PATH? value 

DESCRIPTION:[edit]

Return TRUE if value is any type of path.

ANY-PATH? is a function value.

ARGUMENTS[edit]

  • value -- (Type: any-type)

SOURCE CODE[edit]

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