Created
December 20, 2016 22:21
-
-
Save theburningmonk/982805a8efa309ccc728c39a343167a6 to your computer and use it in GitHub Desktop.
Advent of Code (Day 20)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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