Advertisement
Guest User

Untitled

a guest
Dec 1st, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn calculate-total-fuel
  2.   [input]
  3.   (reduce
  4.     +
  5.     (map
  6.       (fn [x] (- (quot x 3) 2))
  7.       input)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement