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:
I hereby claim:
To claim this, I am signing this object:
/* 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") }) | |
} |