Advertisement
florence20

Untitled

Apr 30th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1.  
  2. maximY :: (Ord a, Ord b) => [(a,b)] -> b
  3. maximY l = fst $ maximum $ map swap l where
  4. swap (x, y) = (y, x)
  5.  
  6. //e Ord pentru ca Int normal nu se poate compara, gen nu poti aplica maximu pe el
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement