Skip to content

Instantly share code, notes, and snippets.

@Archer70
Created November 30, 2016 06:18
Show Gist options
  • Save Archer70/d0a0cb9e327ac7575317e0e1dbbbbb7c to your computer and use it in GitHub Desktop.
Save Archer70/d0a0cb9e327ac7575317e0e1dbbbbb7c to your computer and use it in GitHub Desktop.
Answer to Facebook number question.
(def numbers [
[8 2] [5 4] [9 6]
[7 5] [20 3] [30 1]
[18 4] [10 5]
])
(map (fn [pair]
(print
(pair 0) "+" (pair 1)
"="
(* (pair 0) (pair 1))
(+ (pair 0) (pair 1))
(- (pair 0) (pair 1))
"\n"
)
) numbers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment