Created
May 12, 2020 12:43
-
-
Save tarquin-the-brave/ddbb1146480062d73ecc497c6f803e4b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
main = do | |
contents <- fmap lines . readFile $ "input.txt" | |
let orbits = fmap parseOrbit contents | |
let myForest = unfoldForest (forestBuilder orbits) (roots orbits) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment