grapes-and-and-and-grapes: (&&&) :: (b -> c) -> (b -> c') -> (b -> (c, c'))

Description Usage Arguments Details Value References

Description

(&&&) :: (b -> c) -> (b -> c') -> (b -> (c, c'))

Usage

1
f %&&&% g

Arguments

f

The function whos return value is the first element of the resulting pair.

g

The function whos return value is the second element of the resulting pair.

Details

This is the function instance's &&& of Arrow.

Value

A function of arity one that returns a pair. r(x) = (f(x), g(x))

References

Haskell's Control.Arrow


argent0/functional documentation built on May 10, 2019, 1:26 p.m.