Skip to content

Instantly share code, notes, and snippets.

@FreeAgent
FreeAgent / gist:7f42c45eb25ca802a71f19b1b4542edf
Created January 18, 2017 22:15
A solution in Clojure to problem 8 from Project Euler (https://projecteuler.net/problem=8)
(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]