Handbook
Glossary
candidates-triplets ( seed -- candidates )
Vocabulary
rosetta-code
.
pythagorean-triples
Inputs
seed
an
object
Outputs
candidates
an
object
Definition
USING:
kernel
sequences
;
IN:
rosetta-code.pythagorean-triples
:
candidates-triplets
( seed -- candidates )
{
{
{
1 2 2
}
{
-2 -1 -2
}
{
2 2 3
}
}
{
{
1 2 2
}
{
2 1 2
}
{
2 2 3
}
}
{
{
-1 -2 -2
}
{
2 1 2
}
{
2 2 3
}
}
}
[
next-triplet
]
with
map
;