Created
January 11, 2016 20:27
-
-
Save lnds/c7ba64b77b24be873742 to your computer and use it in GitHub Desktop.
Validar en clojure
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
(defn validar [tam num] | |
(if (and (solo-digitos num) (largo-esperado tam num)) | |
(map #(Character/digit % 10) (seq num)) | |
nil)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment