@hackage tuple-gen1.0

Generating all n-tuples without getting stuck in one infinity

  • Categories

    • License

      BSD-3-Clause

    • Maintainer

      Tillmann.Vogt@rwth-aachen.de

    • Versions

      • 2.0 Sun, 11 Mar 2012
      • 1.1 Sun, 17 Apr 2011
      • 1.0 Tue, 18 Jan 2011

    Generating tuples like this: [(x, y) | x <- [1..], y <- [1..]] generates tuples that change only in the second position. This library uses an automata to generate all tuples whose sum of digits is constant. This constant is increased and thereby all tuples are generated.