Browse Source

Implement foldable or

DricomDragon 5 years ago
parent
commit
d0fe430f5c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      fold.hs

+ 3 - 0
fold.hs

@@ -5,3 +5,6 @@ fsum = foldl (+) 0
 
 fmax::(Ord a, Num a) => [a] -> a
 fmax = foldl max 0
+
+for::[Bool] -> Bool
+for = foldl (||) False