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