my solutions to advent of code
aoc advent-of-code

template update

aylac.top bafc9621 823fd273

verified
Changed files
+7 -8
template
gleam
+7 -8
template/gleam/src/main.gleam
···
-
import gleam/int.{to_string}
-
import gleam/io.{println}
import gleam/string
-
import simplifile.{read as read_file}
pub fn main() {
-
let assert Ok(input) = read_file(from: "../input.txt")
as "Input file not found"
let input = input |> string.trim
-
println(
-
5
-
|> to_string,
-
)
}
···
+
import gleam/int
+
import gleam/io
import gleam/string
+
import simplifile as file
pub fn main() {
+
let assert Ok(input) = file.read(from: "../input.txt")
as "Input file not found"
let input = input |> string.trim
+
5
+
|> int.to_string
+
|> io.println
}