Skip to content

Commit 169a99b

Browse files
committed
use clava.string
1 parent 3b27a56 commit 169a99b

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Diff for: 2021/day01_borkdude.cljs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
(ns day01-borkdude
2-
(:require ["fs" :as fs]))
2+
(:require ["fs" :as fs]
3+
[clojure.string :as str]))
34

45
(def input
5-
(mapv js/parseInt (.split (.trim (fs/readFileSync "2021/input/day01.txt" "utf-8")) "\n")))
6+
(mapv js/parseInt (str/split (str/trim (fs/readFileSync "2021/input/day01.txt" "utf-8")) "\n")))
67

78
(defn increases [nums]
89
(filter true? (map #(< %1 %2) nums (rest nums))))

Diff for: package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"clavascript": "^0.0.0-alpha.33"
3+
"clavascript": "^0.0.0-alpha.37"
44
}
55
}

0 commit comments

Comments
 (0)