Skip to content

Instantly share code, notes, and snippets.

@lnds
Created January 11, 2016 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lnds/c7ba64b77b24be873742 to your computer and use it in GitHub Desktop.
Save lnds/c7ba64b77b24be873742 to your computer and use it in GitHub Desktop.
Validar en clojure
(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