diff options
author | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2023-12-21 22:09:25 +0100 |
---|---|---|
committer | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2023-12-21 22:09:25 +0100 |
commit | d8e183f02f67522d94deafa328e19b3081ca41be (patch) | |
tree | 4617cc4fec15365cdcdfeb594b02432937d6c946 /aoc-2020-gleam/src/util/input_util.gleam | |
parent | 02598d252c0e9093384ec53e46445df1a783feda (diff) | |
download | gleam_aoc2020-d8e183f02f67522d94deafa328e19b3081ca41be.tar.gz gleam_aoc2020-d8e183f02f67522d94deafa328e19b3081ca41be.zip |
Update to newest Gleam version
Diffstat (limited to 'aoc-2020-gleam/src/util/input_util.gleam')
-rw-r--r-- | aoc-2020-gleam/src/util/input_util.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aoc-2020-gleam/src/util/input_util.gleam b/aoc-2020-gleam/src/util/input_util.gleam index 27f3009..f4f6812 100644 --- a/aoc-2020-gleam/src/util/input_util.gleam +++ b/aoc-2020-gleam/src/util/input_util.gleam @@ -3,7 +3,7 @@ import gleam/list import gleam/bool import gleam/string as str import gleam/function as fun -import gleam/erlang/file +import simplifile as file import ext/resultx as resx pub fn read_text(filename: String) -> String { @@ -17,7 +17,7 @@ pub fn read_lines(filename: String) -> List(String) { |> read_text |> str.split(on: "\n") |> list.map(with: str.trim) - |> list.filter(for: fun.compose(str.is_empty, bool.negate)) + |> list.filter(keeping: fun.compose(str.is_empty, bool.negate)) } pub fn read_numbers(filename: String) -> List(Int) { |