0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-26 16:56:11 -05:00

Add ^boolean typehints to matrix? and point? predicates.

Performance optimizations.
This commit is contained in:
Andrey Antukh 2016-08-11 18:12:47 +03:00
parent d9a5c06106
commit 1e9e9ef6d1
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@
(let [[a b c d tx ty] v]
(Matrix. a b c d tx ty))))
(defn matrix?
(defn ^boolean matrix?
"Return true if `v` is Matrix instance."
[v]
(instance? Matrix v))

View file

@ -35,7 +35,7 @@
(-point [v]
(Point. (first v) (second v))))
(defn point?
(defn ^boolean point?
"Return true if `v` is Point instance."
[v]
(instance? Point v))