Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
dim-sum ( seq -- dim )
Factor documentation
>
Factor handbook
>
UI framework
>
Building user interfaces
>
Gadget hierarchy and layouts
>
Implementing layout gadgets
Prev:
max-dim ( dims -- dim )
Vocabulary
ui.gadgets
Inputs and outputs
seq
a sequence of pairs of integers
dim
a pair of integers
Word description
Sums a sequence of dimensions.
See also
pref-dims
,
max-dim
Definition
USING:
math.vectors
sequences
;
IN:
ui.gadgets
:
dim-sum
( seq -- dim )
{
0 0
}
[
v+
]
reduce
;