Created
January 11, 2016 20:08
-
-
Save lnds/af0a3425a0fa912f513b to your computer and use it in GitHub Desktop.
selección en Haskell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validar n xs | |
| length num /= n = [] | |
| otherwise = num | |
where num = if not (all isDigit xs) then [] else remover_dups xs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment