mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-09-30 13:03:19 -09:00
golf
This commit is contained in:
parent
46e48b5f4b
commit
dd3943eddd
@ -1,9 +1,8 @@
|
|||||||
(ns day09 (:require [core :refer [get-puzzle-input]]
|
(ns day09 (:require [core :refer [get-puzzle-input]]
|
||||||
[clojure.string :as str]))
|
[clojure.string :as str]))
|
||||||
|
|
||||||
(defn parse-line [line]
|
(defn parse-line [line] (->> (str/split line #" ")
|
||||||
(->> (str/split line #" ")
|
(mapv #(Long/parseLong %))))
|
||||||
(mapv #(Long/parseLong %))))
|
|
||||||
|
|
||||||
(defn generate-pyramid [nums]
|
(defn generate-pyramid [nums]
|
||||||
(loop [pyramid [nums]]
|
(loop [pyramid [nums]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user