Handbook
Glossary
nsum ( n -- quot )
Factor handbook
»
The language
»
Combinators
»
Generalized shuffle words and combinators
»
Additional generalizations
Prev:
nwith ( n -- )
Vocabulary
generalizations
Inputs
n
an
integer
Outputs
None
Word description
Adds the top
n
stack values.
Definition
USING:
math
;
IN:
generalizations
MACRO:
nsum
( n -- quot )
1
-
[
+
]
n*quot
;