Created
January 11, 2016 20:50
-
-
Save lnds/b7e46cf41ea6ee2eb7be to your computer and use it in GitHub Desktop.
Validando en Erlang
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
Digitos = lists:all(fun (X) -> is_digit(X) end, Entrada), | |
if Digitos =:= true -> unicos(to_num(Entrada), Tam, Len) ; | |
Digitos =:= false -> [] end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment