| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Function.Variadic.Utils
Synopsis
- composeN :: (Function f args b EmptyConstraint, Function g args a EmptyConstraint) => (a -> b) -> g -> f
- constN :: Function f args a EmptyConstraint => a -> f
- mappendN :: forall r f args. (Function f args r ((~) r), Monoid r) => f
Documentation
composeN :: (Function f args b EmptyConstraint, Function g args a EmptyConstraint) => (a -> b) -> g -> f Source #
Function composition for an arbitrary number of arguments.
>>>(show `composeN` \a b c -> (a + b + c :: Int)) 1 2 3"6"
constN :: Function f args a EmptyConstraint => a -> f Source #
Constant function for an arbitrary number of arguments.
let const2 = constN :: x -> a -> b -> x
>>>zipWith3 (constN 1) [1..10] [1..5] ["a", "b", "c"] :: [Int][1,1,1]