:: (a -> c) -> (a, b) -> (c, b) package:speculate

Applies a function to the first element of a pair. Often known on the wild as mapFst.
> first (*10) (1,2)
(10,2)