Extract logic into Task

This commit is contained in:
2024-10-10 22:49:28 +02:00
parent bdacbd792f
commit e235475118
2 changed files with 21 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
defmodule Mihainator.CSVParser do
@moduledoc false
def start(file) do
File.stream!(file)
|> Stream.map(&String.split(&1, ","))
|> Enum.count()
end
end