projects
/
advent_of_code_2017.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded504b
)
More compact...
author
Ummon
<greg.burri@gmail.com>
Thu, 7 Dec 2017 09:32:43 +0000
(10:32 +0100)
committer
Ummon
<greg.burri@gmail.com>
Thu, 7 Dec 2017 09:32:43 +0000
(10:32 +0100)
AdventOfCode2017/Day7.fs
patch
|
blob
|
history
diff --git
a/AdventOfCode2017/Day7.fs
b/AdventOfCode2017/Day7.fs
index
827fee1
..
2fe6ae0
100644
(file)
--- a/
AdventOfCode2017/Day7.fs
+++ b/
AdventOfCode2017/Day7.fs
@@
-18,12
+18,7
@@
let parseInput (lines : string list) : Input =
|> List.map (
fun line ->
let items = line.Split ([| '\r'; '\t'; ' '; ','; ')'; '(' |], StringSplitOptions.RemoveEmptyEntries)
- {
- Name = items.[0]
- Weight = int items.[1]
- Above = List<Tower> ()
- },
- [ for i in 3 .. items.Length - 1 -> items.[i] ]
+ { Name = items.[0]; Weight = int items.[1]; Above = List<Tower> () }, [ for i in 3 .. items.Length - 1 -> items.[i] ]
)
let buildTower (input : Input) : Tower =