+7
-8
template/gleam/src/main.gleam
+7
-8
template/gleam/src/main.gleam
···
1
-
import gleam/int.{to_string}
2
-
import gleam/io.{println}
1
+
import gleam/int
2
+
import gleam/io
3
3
import gleam/string
4
-
import simplifile.{read as read_file}
4
+
import simplifile as file
5
5
6
6
pub fn main() {
7
-
let assert Ok(input) = read_file(from: "../input.txt")
7
+
let assert Ok(input) = file.read(from: "../input.txt")
8
8
as "Input file not found"
9
9
let input = input |> string.trim
10
10
11
-
println(
12
-
5
13
-
|> to_string,
14
-
)
11
+
5
12
+
|> int.to_string
13
+
|> io.println
15
14
}