Skip to content

Commit

Permalink
add the file with the file-parsing function
Browse files Browse the repository at this point in the history
  • Loading branch information
codingzorro committed Jan 20, 2024
1 parent 66db157 commit da5fabf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/advent2023/utils.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(ns advent2023.utils
(:require [advent2023.utils :as u]
[clojure.string :as str]))

(defn parse-aoc-file
"convert the typical Advent Of Code file into a seq of lines"
[file-name]
(->> file-name
slurp
(str/split-lines)))

0 comments on commit da5fabf

Please sign in to comment.