14.30 - -14.30 applyLeft : (a -> c) -> Either a b...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
--14.30 applyLeft :: (a -> c) -> Either a b -> c applyLeft f x = either f (error "applyLeft applied to Right") x
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online