Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. paGetByName :: Nome -> ListaPontoAcesso -> PontoAcesso
  2. paGetByName _ [PontoAcesso_Empty] = PontoAcesso_Empty
  3. paGetByName n (h@(PAcesso id nome _ _ _ _):t) | n == nome = h
  4.                                               | otherwise = (paGetByName n t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement