SHARE
TWEET

mbac fold-left implementation

a guest Oct 8th, 2011 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn fold-left [f acc coll]
  2.   (let [x (first coll)]
  3.     (if (= x nil) acc
  4.         (fold-left f (f acc x) (rest coll)))))
  5.  
  6.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top