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