Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.21 KB | None | 0 0
  1. extremum (x:xs) = if (all (\y -> ((maximum x == maximum y) || (maximum x == minimum y))) xs ) then maximum x else if
  2.  all (\y -> ((minimum x == maximum y) || (minimum x == minimum y))) xs then minimum x else 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement