No description
Find a file
2025-07-30 01:12:17 -03:00
.gitignore .gitignore 2025-07-26 15:21:55 -03:00
day01.fsx It is easier than that to find the first repeat 2025-07-26 15:39:59 -03:00
day02.fsx Rename files to fsx for correct single-file analysis 2025-07-20 15:27:36 -03:00
day03.fsx Hey I think that's way better 2025-07-27 20:34:24 -03:00
day04.fsx Just found out about countBy 2025-07-27 18:02:22 -03:00
day05.fsx I did think it was stupid to use recursion for this. 2025-07-30 01:12:17 -03:00
day06.fsx Just found out about countBy 2025-07-27 18:02:22 -03:00
day07.fsx That's a freakin' list comprehension 2025-07-26 15:06:56 -03:00
day08.fsx Be consistent in your awfulness 2025-07-22 03:50:43 -03:00
day09.fsx Day 09 2025-07-26 15:05:04 -03:00
README.md Update README.md 2025-07-21 01:47:23 -03:00

My attempt to solve Advent of Code 2016 using F# in order to better learn the language. I don't have much experience with functional programming languages, so this is my attempt to get a better feel for the paradigm.

F# does allow for mutability and loops, but it's not "idiomatic," so I opt against using these features, relying mostly on recursion and pattern matching.

The code in this repository targets Mono, not the modern .NET version of F#, but it should be compatible. The most glaring differences I've come across are:

  • String interpolation with the $"{var}" syntax does not work
  • Indexing can only be done with the var.[x] syntax, the modern .NET F# allows for indexing with var[x] instead
  • The List.transpose function does not exist. But you can easily make your own