Skip to content

Commit

Permalink
clojure 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 10, 2024
1 parent f1bfbb6 commit 7545955
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions notebooks/clojure_1_12.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(ns clojure-1-12)

^{:nextjournal.clerk/visibility {:result :hide}}
(defn to-matrix [input]
(for [line (String/.split input "\\n")
:let [numbers (String/.split line "\\s+")]]
(map parse-long #_Long/parseLong numbers)))

(to-matrix "1 1 2
4 5 6")

0 comments on commit 7545955

Please sign in to comment.