Skip to content

timfennis/advent-of-code-2021

Repository files navigation

Advent of Code 2021

Additional rules

To make it a little harder for myself I set some rules.

  1. Only pure functions, so no side effects!
  2. Every function must be declared as an expression (except for main because who cares)
fun notLikeThis(a: Int, b: Int): Int {
    val c = a + b
    
    return c
}

fun butLikeThis(a: Int, b: Int) = a + b

Releases

No releases published

Packages

No packages published

Languages