Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn calculate-total-fuel
- [input]
- (reduce
- (fn [i, x] (+ i x))
- 0
- (map
- (fn [x] (- (quot x 3) 2))
- input)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement