I love Tim and Eric, so it's only logical that I love the Eric Andre show just a few episodes in - it's both more focused yet even more irreverent
The FOSS-only people remind me of vegans. Plenty are respectful. Other ones get in your face to tell you how much of a piece of shit you are.
This page still exists.
I'm sure some would want to kill it with fire.
Did I just learn monads by accident?
#AoC2017 day 2 #FSharp solution Show more
// Assume that x is a pre-parsed input of type "int list list"
// full file: https://github.com/a-red-christmas/aoc2017-fs/blob/master/day2/Program.fs
let part1 x =
List.map (fun y -> List.max y - List.min y) x
let part2 x =
// iterate over the list twice to find a divisor that isn't self and clean
let findDiv l = List.sumBy (fun y ->
List.sumBy (fun z ->
if y <> z && y % z = 0 then y / z else 0) l) l
List.map findDiv x |> List.sum
my crowning achievement for the day: wrote a 1655 character, 190 word commit message for a one line change.
Deleting dead source code is very satisfying.