Handbook
Glossary
add-triplets ( current-triples limit triplet -- stop )
Vocabulary
rosetta-code
.
pythagorean-triples
Inputs
current-triples
an
object
limit
an
object
triplet
an
object
Outputs
stop
an
object
Definition
USING:
accessors
kernel
math
sequences
;
IN:
rosetta-code.pythagorean-triples
:
add-triplets
( current-triples limit triplet -- stop )
sum
2dup
>
[
/i
[
+
]
curry
change-total
[
1
+
]
change-primitives
drop
t
]
[
3drop
f
]
if
;