about summary refs log tree commit diff
path: root/day2.exs
diff options
context:
space:
mode:
Diffstat (limited to 'day2.exs')
-rw-r--r--day2.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/day2.exs b/day2.exs
index 620ba5a..6aa5ff0 100644
--- a/day2.exs
+++ b/day2.exs
@@ -1,11 +1,11 @@
 defmodule Day2 do
-  def get_lines() do
-    File.stream!("day2.in")
+  def input() do
+    File.stream!("input/day2.in")
     |> Stream.map(&String.trim/1)
   end
 
   def find_subcount(count) do
-    get_lines()
+    input()
     |> Enum.reduce(0, fn x, acc ->
       if x
          |> String.graphemes()
@@ -22,7 +22,7 @@ defmodule Day2 do
   end
 
   def find_common_chars() do
-    get_lines()
+    input()
     |> Enum.reduce(%MapSet{}, fn x, acc ->
       x
       |> String.graphemes()