angerangel edited this page Jan 3, 2013 · 1 revision

USAGE

   EXTEND obj word val

DESCRIPTION

Extend an object, map, or block type with word and value pair.

EXTEND is a function value.

ARGUMENTS

  • obj (object! map! block! paren!)
  • word (any-word!)
  • val

#SOURCE

extend: make function! [  [
    {Extend an object, map, or block type with word and value pair.}
    obj [object! map! block! paren!]
    word [any-word!]
    val
][
    if :val [append obj reduce [to-set-word word :val] ]
    :val
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.