REBOL Programming/get-face

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

USAGE:[edit]

GET-FACE face 

DESCRIPTION:[edit]

Returns the primary value of a face.

GET-FACE is a function value.

ARGUMENTS[edit]

  • face -- (Type: any)

SOURCE CODE[edit]

get-face: func [
    "Returns the primary value of a face." 
    face 
    /local access
][
    if all [
        access: get in face 'access 
        in access 'get-face*
    ] [
        access/get-face* face
    ]
]