remove input padding

This commit is contained in:
Caleb Webber 2023-12-03 02:39:24 -05:00
parent c7b996aea5
commit 32e036b925

View file

@ -31,8 +31,6 @@ part2 = fn s ->
for [pre, curr, post] <-
s
|> Enum.reject(&(String.length(&1) == 0))
|> then(fn x -> Enum.concat([""], x) end)
|> then(fn x -> Enum.concat(x, [""]) end)
|> Enum.chunk(3, 1)
|> Enum.map(fn u -> Enum.map(u, &String.trim/1) end),
curr |> String.contains?("*"),