REBOL Programming/load-stock-block

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

USAGE:[edit]

LOAD-STOCK-BLOCK block 

DESCRIPTION:[edit]

Load a block of stock image names. Return block of images.

LOAD-STOCK-BLOCK is a function value.

ARGUMENTS:[edit]

  • block -- (Type: any)

SOURCE CODE[edit]

load-stock-block: func [
    {Load a block of stock image names. Return block of images.} 
    block /local list
][
    list: copy [] 
    foreach name block [append list load-stock name] 
    list
]