Skip to content

Instantly share code, notes, and snippets.

@theburningmonk
Created December 20, 2016 22:21
Show Gist options
  • Save theburningmonk/982805a8efa309ccc728c39a343167a6 to your computer and use it in GitHub Desktop.
Save theburningmonk/982805a8efa309ccc728c39a343167a6 to your computer and use it in GitHub Desktop.
Advent of Code (Day 20)
open System.IO
open Checked
let input =
File.ReadAllLines(__SOURCE_DIRECTORY__ + "/Day20Input.txt")
|> Seq.map (fun line ->
let [| lo; hi |] = line.Split('-')
int64 lo, int64 hi)
|> Seq.sortBy fst
|> Seq.toList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment