Advertisement
Guest User

Untitled

a guest
Sep 26th, 2011
194
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] (->> s reverse (map-indexed #(if (= \1 %2) (Math/pow 2 %1) 0)) (reduce +) (int)))
  4.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement