aboutsummaryrefslogtreecommitdiffstats
path: root/app/Data/List/Extra.hs
blob: d01beb985ce0af1e942e71de7d63f59d47b0653c (plain)
1
2
3
4
5
module Data.List.Extra (list) where

list :: b -> ([a] -> b) -> [a] -> b
list y _ [] = y
list _ f xs = f xs