An open API service indexing awesome lists of open source software.

https://github.com/fuzzypixelz/aoc2022

Advent Of Code 2022
https://github.com/fuzzypixelz/aoc2022

advent-of-code-2022 advent-of-code-fsharp

Last synced: 9 months ago
JSON representation

Advent Of Code 2022

Awesome Lists containing this project

README

          

# Advent Of Code 2022: Stick-to-F# Edition

## Day 1

Here we go again :)

## Day 2

- It was interesting how the second question reduces to the first.
- I may have overdone it with the types.
- Still relatively easy.

## Day 3

- I wrote much less code today.
- I was surprised to see that the difference between the first and second
questions is nothing more than the difference between _splitting_ rucksacks
in half and _chunking_ rucksacks into groups of three.
- Why did F# remove Character Range Matches?

## Day 4

- F# interactive programming is very practical, could be faster.
- Not sure if using FParsec here is overkill.
- I got the `Assignment.AreOverlapping` function wrong many times.

## Day 5

- Most of the time was spent parsing; the stack numbers were useless.
- One can write a generic crane that works for both parts with Dependency
Injection.
- In F# `String.concat` and `String.Concat` are very different.

## Day 6

- `Array.windowed` is cool.
- Easiest problem yet?

## Day 7

- Parsing a non-persistent tree with FParsec went very wrong; Regex isn't so
bad.
- Hardest problem yet?