Guest User

Untitled

a guest
Mar 30th, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (fn max-num-finder
  2.   [& coll]
  3.     (if (empty? coll)
  4.       cur-max
  5.       (recur (if(>(first coll)cur-max) (first coll) cur-max)  (rest coll))))
  6.  
  7. ;I want to bind cur-max to the first item in the coll, but only on the very first function call.  how?
Advertisement
Add Comment
Please, Sign In to add comment