Rebol Programming/get-path?

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

USAGE:

[edit | edit source]
GET-PATH? value 

DESCRIPTION:

[edit | edit source]

Returns TRUE if it is this type.

GET-PATH? is a function value.

ARGUMENTS

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

SOURCE CODE

[edit | edit source]
get-path?: func ["Returns TRUE if it is this type." value [any-type!]][
    found? all [path? get/any 'value get-word? pick value 1]
]