From d8e183f02f67522d94deafa328e19b3081ca41be Mon Sep 17 00:00:00 2001 From: Tomasz Chojnacki Date: Thu, 21 Dec 2023 22:09:25 +0100 Subject: Update to newest Gleam version --- aoc-2020-gleam/src/util/input_util.gleam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aoc-2020-gleam/src/util/input_util.gleam') 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) { -- cgit v1.2.3