Jump to content

Rebol Programming/to-get-path

From Wikibooks, open books for an open world

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
]