Guest User

Untitled

a guest
May 25th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn futureCost [goal]
  2.   (loop [p (priority-map)
  3.          cand (filter #(= (count %) (count goal)) words)]
  4.     (let [w1 (first cand)]
  5.       (if (empty? cand)
  6.         p
  7.         (recur
  8.          (assoc p w1 (dist w1 goal))
  9.          (rest cand))))))
Advertisement
Add Comment
Please, Sign In to add comment