class PythagoreanTriples
- PythagoreanTriples
- Reference
- Object
Included Modules
- Enumerable({Int32, Int32, Int32})
- Iterable({Int32, Int32, Int32})
Defined in:
math/pythagorean_triples.crConstructors
Instance Method Summary
-
#each(&)
Enumerates all primitive Pythagorean triples not more than
#limit
. - #each
- #limit : Int32
Instance methods inherited from module Enumerable({Int32, Int32, Int32})
accumulate(init : U) : Array(U) forall Uaccumulate : Array({Int32, Int32, Int32})
accumulate(init : U, &block : U, {Int32, Int32, Int32} -> U) : Array(U) forall U
accumulate(&block : {Int32, Int32, Int32}, {Int32, Int32, Int32} -> {Int32, Int32, Int32}) : Array({Int32, Int32, Int32}) accumulate, mex : {Int32, Int32, Int32} mex, mex_sorted : {Int32, Int32, Int32} mex_sorted, tally(*, default : Int32) : Hash({Int32, Int32, Int32}, Int32) tally, unique : self
unique(&) : self unique
Constructor Detail
Instance Method Detail
def each
#