#AoC2017 #FSharp solution Show more
Recursion based approach with immutable lists, not arrays.
30 damn minutes to run part 2 with 28M iterations, and a more "reasonable" ~375K on part 1. Printing to console makes it worse; thankfully I had VS to break into debugging instantly to pause; IMHO the killer feature of F# over other functional languages.
Now I'd like to see a comparison of F# vs. OCaml/SML and immutable lists vs. mutating arrays.