Add the ability to create a point instance from hash-map.

This commit is contained in:
Andrey Antukh
2017-03-02 16:14:12 +01:00
parent 4676edca8b
commit fdf3f1b6f0

View File

@@ -31,6 +31,9 @@
(seq? v))
(Point. (first v) (second v))
(map? v)
(Point. (:x v) (:y v))
(number? v)
(Point. v v)