a guest Dec 12th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- extremum (x:xs) = if (all (\y -> ((maximum x == maximum y) || (maximum x == minimum y))) xs ) then maximum x else if
- all (\y -> ((minimum x == maximum y) || (minimum x == minimum y))) xs then minimum x else 0
RAW Paste Data