tuple-gen-1.1: Generating all n-tuples without getting stuck in one infinity

Data.Tuple.Gen

Synopsis

# Documentation

all2s :: Num a => [(a, a)]Source

generate all 2-tuples so that the sum of all digits is monotonic increasing

all3s :: Num a => [(a, a, a)]Source

generate all 3-tuples so that the sum of all digits is monotonic increasing

all4s :: Num a => [(a, a, a, a)]Source

generate all 4-tuples so that the sum of all digits is monotonic increasing

all5s :: Num a => [(a, a, a, a, a)]Source

generate all 5-tuples so that the sum of all digits is monotonic increasing

all6s :: Num a => [(a, a, a, a, a, a)]Source

generate all 6-tuples so that the sum of all digits is monotonic increasing

all7s :: Num a => [(a, a, a, a, a, a, a)]Source

generate all 7-tuples so that the sum of all digits is monotonic increasing

all8s :: Num a => [(a, a, a, a, a, a, a, a)]Source

generate all 8-tuples so that the sum of all digits is monotonic increasing

all9s :: Num a => [(a, a, a, a, a, a, a, a, a)]Source

generate all 9-tuples so that the sum of all digits is monotonic increasing

all10s :: Num a => [(a, a, a, a, a, a, a, a, a, a)]Source

generate all 10-tuples so that the sum of all digits is monotonic increasing

all2sFrom :: Num a => (a, a) -> [(a, a)]Source

all3sFrom :: Num a => (a, a, a) -> [(a, a, a)]Source

all4sFrom :: Num a => (a, a, a, a) -> [(a, a, a, a)]Source

all5sFrom :: Num a => (a, a, a, a, a) -> [(a, a, a, a, a)]Source

all6sFrom :: Num a => (a, a, a, a, a, a) -> [(a, a, a, a, a, a)]Source

all7sFrom :: Num a => (a, a, a, a, a, a, a) -> [(a, a, a, a, a, a, a)]Source

all8sFrom :: Num a => (a, a, a, a, a, a, a, a) -> [(a, a, a, a, a, a, a, a)]Source

all9sFrom :: Num a => (a, a, a, a, a, a, a, a, a) -> [(a, a, a, a, a, a, a, a, a)]Source

all10sFrom :: Num a => (a, a, a, a, a, a, a, a, a, a) -> [(a, a, a, a, a, a, a, a, a, a)]Source

data T2 a Source

Instances

 Eq a => Eq (T2 a) (Eq a, Ord a, Num a) => Ord (T2 a) Show a => Show (T2 a)

data T3 a Source

Instances

 Eq a => Eq (T3 a) (Eq a, Ord a, Num a) => Ord (T3 a) Show a => Show (T3 a)

data T4 a Source

Instances

 Eq a => Eq (T4 a) (Eq a, Ord a, Num a) => Ord (T4 a) Show a => Show (T4 a)

data T5 a Source

Instances

 Eq a => Eq (T5 a) (Eq a, Ord a, Num a) => Ord (T5 a) Show a => Show (T5 a)

data T6 a Source

Instances

 Eq a => Eq (T6 a) (Eq a, Ord a, Num a) => Ord (T6 a) Show a => Show (T6 a)

data T7 a Source

Instances

 Eq a => Eq (T7 a) (Eq a, Ord a, Num a) => Ord (T7 a) Show a => Show (T7 a)

data T8 a Source

Instances

 Eq a => Eq (T8 a) (Eq a, Ord a, Num a) => Ord (T8 a) Show a => Show (T8 a)

data T9 a Source

Instances

 Eq a => Eq (T9 a) (Eq a, Ord a, Num a) => Ord (T9 a) Show a => Show (T9 a)

data T10 a Source

Instances

 Eq a => Eq (T10 a) (Eq a, Ord a, Num a) => Ord (T10 a) Show a => Show (T10 a)