time is a simple one-liner:</p>
<pre><code class="nim hljs"><span class="hljs-keyword">proc</span> parse(text: <span class="hljs-built_in">string</span>): <span class="hljs-built_in">seq</span>[<span class="hljs-built_in">int</span>] =
  text.splitLines.map(parseInt)

<span class="hljs-keyword">let</span>
  input = parse <span class="hljs-string">&quot;2020/input09.txt&quot;</span>.readFile
  example = parse <span class="hljs-string">&quot;&quot;&quot;35
20
15
25
47
40
62
55
65
95
102
117
150
182
127
219
29