Skip to content

Instantly share code, notes, and snippets.

@techtangents
Created February 14, 2014 21:40
Show Gist options
  • Save techtangents/9009898 to your computer and use it in GitHub Desktop.
Save techtangents/9009898 to your computer and use it in GitHub Desktop.
import Data.List.NonEmpty
import Control.Applicative
import Prelude hiding (foldl1)
import Data.Foldable (foldl1)
isA :: a -> Bool
isA = undefined
isB :: a -> Bool
isB = undefined
isC :: a -> Bool
isC = undefined
f :: a -> Bool
f = foldl1 (liftA2 (||)) $ isA :| [isB, isC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment