/aoc_csharp_functional

solutions to Advent of Code in functional C#

Primary LanguageC#

Introduction

This repository is an attempt to better learn functional C# and do the Advent of Code problems at the same time.

What is functional to me?

I set the following rules for myself, mostly taken from the book Functional Programming with C# and with some personal additions:

  1. Don't use if, for, while, etc. Ternary operator ? is allowed
  2. Try to use readonly data structures and records as much as possible
  3. LINQ is considered functional, so any use of LINQ is allowed