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
(defn get-final-freq | |
"Day one: calculate resulting frequency" | |
[freq_list] | |
; 1. clojurist prefer to use `-` instead of `_` in names | |
; 2. I'm not sure how you got and what's inside `freq_list` (I suppose integers, then it's fine) | |
(reduce + freq_list)) | |
(defn repeated-freq | |
"Day one: first occur of repeated frequency" | |
[freq_list] |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |