Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Advent of Code (Day 3)
#load "Day03.fs"
open Day03
let numRows = input.Length
{ 0..numRows-1 }
|> Seq.chunkBySize 3
|> Seq.collect (fun rows ->
{ 0..2 }
|> Seq.map (fun col ->
rows |> Array.map (fun row -> input.[row].[col])))
|> Seq.filter isTriangle
|> Seq.length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.