Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Rebol Programming/span?

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

USAGE: SPAN? pane /part count DESCRIPTION: Returns a block of [min max] bounds for all faces SPAN? is a function value. ARGUMENTS pane -- (Type: block) REFINEMENTS /part count -- Limit the number of faces (Type: integer) SOURCE CODE span?: func [ "Returns a block of [min max] bounds for all faces" pane [block!] /part count [integer!] "Limit the number of faces" /local origin margin ][ origin: 100000x100000 margin: 0x0 foreach item pane [ if object? item [ if all [count negative? count: count - 1] [break] origin: min origin item/offset margin: max margin item/offset + item/size ] ] reduce [origin margin] ]