This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns largestproduct.core) | |
(def INPUT_FILE "input.txt") | |
(defn parse-int | |
"parse a string & return an integer value" | |
[s] (Integer. (re-find #"\d+" s ))) | |
(defn get-int-sequence | |
"strip out newlines & convert chars to ints" [input-data] |