Add specs and single arity for word-cloud

This commit is contained in:
xtreak 2018-03-24 15:02:31 +05:30
parent ebe2fe049d
commit 5832b23d3b
3 changed files with 50 additions and 4 deletions

View file

@ -28,7 +28,7 @@
(write-to-file word-cloud "example_circle.png"))
(let [frequency-map (zipmap (range 100 150) (shuffle (range 300)))
(let [frequency-map (zipmap (map str (range 100 150)) (shuffle (range 300)))
word-cloud (word-cloud frequency-map
{:dimension {:width 600
:height 600}