Create a gist now
Instantly share code, notes, and snippets.
HTTPS clone URL
Subversion checkout URL
This results in a deprecated warning for fn>. Posting here to link to a Jira ticket.
|[(IPersistentVector (IPersistentVector Any))|
|"Returns the number of cleared spaces in the grid."|
|(inc (reduce (fn> [[cleared :- AnyInteger]|
|[row :- (IPersistentVector Any)]]|
|(let [result (inc (reduce (fn> [[row-cleared :- AnyInteger]|
|[grid-item :- Any]]|
|(if (or (= grid-item 0)|
|(= grid-item "@"))|
|(+ cleared result)))|
|;; "DEPRECATED WARNING: fn> syntax has changed, use [b :- t i] for clauses" "ns: " #<Namespace greed.grid>|