Skip to content

Commit

Permalink
hy: Fix number?
Browse files Browse the repository at this point in the history
  • Loading branch information
wasamasa committed Oct 23, 2017
1 parent 27a793e commit f996de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hy/core.hy
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"nil?" none?
"true?" (fn [a] (and (instance? bool a) (= a True)))
"false?" (fn [a] (and (instance? bool a) (= a False)))
"number?" (fn [a] (instance? int a))
"number?" (fn [a] (and (not (instance? bool a)) (instance? int a)))
"string?" (fn [a] (and (string? a) (not (keyword? a))))
"symbol" (fn [a] (Sym a))
"symbol?" (fn [a] (instance? Sym a))
Expand Down

0 comments on commit f996de1

Please sign in to comment.