Skip to content

Commit

Permalink
[core] bugfix transduce call in gu/dist*
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 4, 2015
1 parent 5a0e40a commit ff1ec64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geom-core/src/utils.org
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
[rf]
(fn [c points]
(->> points
(transduce (map #(g/dist-squared c %)) rf)
(transduce (map #(g/dist-squared c %)) rf 0)
(Math/sqrt))))

(def min-dist (dist* min))
Expand Down

0 comments on commit ff1ec64

Please sign in to comment.