Advertisement
Guest User

Untitled

a guest
Sep 26th, 2011
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. https://4clojure.com/problem/122
  2.  
  3. (fn [s]
  4.   (loop [[d & t] s r 0]
  5.     (case d
  6.       \0 (recur t r)
  7.       \1 (recur t (+ r (Math/pow 2 (count t))))
  8.       r)))
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement