REBOL Programming/to-get-path

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

USAGE:[edit]

TO-GET-PATH value 

DESCRIPTION:[edit]

Converts to get-path! value.

TO-GET-PATH is a function value.

ARGUMENTS[edit]

  • value -- (Type: any)

SOURCE CODE[edit]

to-get-path: func ["Converts to get-path! value." value][
    value: to-path :value 
    if word? pick value 1 [poke value 1 to-get-word pick value 1] 
    value
]