this repo has no description

(util): gluen now tries parsing as bignum upon a NumberFormatException for nums > int max

+4 -1
+4 -1
src/aoc2025/util.clj
··· 145 (defn gluen 146 "Takes a coll of numbers and turns them into a number" 147 [digits] 148 - (->> digits (apply str) parse-int)) 149 150 (def minv 151 "(partial map-indexed vector)"
··· 145 (defn gluen 146 "Takes a coll of numbers and turns them into a number" 147 [digits] 148 + (let [num-str (apply str digits)] 149 + (try 150 + (parse-int num-str) 151 + (catch java.lang.NumberFormatException e (bigint num-str))))) 152 153 (def minv 154 "(partial map-indexed vector)"