:: (a -> b -> c) -> Maybe a -> Maybe b -> Maybe c package:linear

Apply a function to the components of two vectors.
  • For a dense vector this is equivalent to liftA2.
  • For a sparse vector this is equivalent to intersectionWith.