A data type with ten nullary constructors and combinators.
- data Digit
- d0 :: Digit
- d1 :: Digit
- d2 :: Digit
- d3 :: Digit
- d4 :: Digit
- d5 :: Digit
- d6 :: Digit
- d7 :: Digit
- d8 :: Digit
- d9 :: Digit
- is0 :: Digit -> Bool
- is1 :: Digit -> Bool
- is2 :: Digit -> Bool
- is3 :: Digit -> Bool
- is4 :: Digit -> Bool
- is5 :: Digit -> Bool
- is6 :: Digit -> Bool
- is7 :: Digit -> Bool
- is8 :: Digit -> Bool
- is9 :: Digit -> Bool
- foldDigit :: a -> a -> a -> a -> a -> a -> a -> a -> a -> a -> Digit -> a
- if0 :: x -> x -> Digit -> x
- if1 :: x -> x -> Digit -> x
- if2 :: x -> x -> Digit -> x
- if3 :: x -> x -> Digit -> x
- if4 :: x -> x -> Digit -> x
- if5 :: x -> x -> Digit -> x
- if6 :: x -> x -> Digit -> x
- if7 :: x -> x -> Digit -> x
- if8 :: x -> x -> Digit -> x
- if9 :: x -> x -> Digit -> x
- ifEven :: x -> x -> Digit -> x
- ifOdd :: x -> x -> Digit -> x
Data type
A data type with ten nullary constructors.
Constructors
Decisions
Deconstructors
:: a | Zero. |
-> a | One. |
-> a | Two. |
-> a | Three. |
-> a | Four. |
-> a | Five. |
-> a | Six. |
-> a | Seven. |
-> a | Eight. |
-> a | Nine. |
-> Digit | The digit to fold. |
-> a |
Catamorphism for Digit
.