Created
December 17, 2015 20:14
-
-
Save mlb-/2782a965e0cfd29af747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def paper-feet | |
(comp #(apply + %) | |
(juxt (partial apply min) | |
(comp #(* 2 %) | |
(partial apply +))) | |
#(map (partial apply *) %) | |
#(partition 2 1 (take 1 %) %) | |
#(map (fn [x] | |
(Integer/parseInt x)) | |
%) | |
#(.split % "x"))) | |
(paper-feet "2x3x4") | |
(paper-feet "1x1x10") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment