Skip to content

Instantly share code, notes, and snippets.

View ryanmoelter's full-sized avatar
👨‍💻
Typing a lot

Ryan Moelter ryanmoelter

👨‍💻
Typing a lot
View GitHub Profile
@ryanmoelter
ryanmoelter / Day2Part2.kts
Last active December 10, 2019 08:02
Advent of code 2019
/* Run in IntelliJ scratch file */
// AoC 2019, day 2
enum class Operation(val action: (Int, Int) -> Int) {
PLUS({ first, second -> first + second }),
MULTIPLY({ first, second -> first * second }),
UNKNOWN({ _, _ -> throw IllegalArgumentException("No operation specified") })
}

Keybase proof

I hereby claim:

  • I am ryanmoelter on github.
  • I am moelten (https://keybase.io/moelten) on keybase.
  • I have a public key ASDT2YWncclqGq_HJbw5WNoBR6TZkLfAzUdF_aprwXeUcwo

To claim this, I am signing this object: