Rebol Programming/to-get-path

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

USAGE:[edit | edit source]

TO-GET-PATH value 

DESCRIPTION:[edit | edit source]

Converts to get-path! value.

TO-GET-PATH is a function value.

ARGUMENTS[edit | edit source]

  • value -- (Type: any)

SOURCE CODE[edit | edit source]

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
]