blob: 95b0cf1f7bfafab8c43b9a0becdc7d2819f96df1 (
plain)
1
2
3
4
5
6
7
8
|
-- !!! Irrefutable patterns + guards
module Read003 where
import GHC.List; import Prelude hiding (null)
~(a,b,c) | nullity b = a
| nullity c = a
| otherwise = a
where
nullity = null
|