Parsing with clojure.spec for the Advent of Code

综合编程 2016-12-09 阅读原文

09 Dec 2016

Advent of Code
is a series of code challenges in the form of an advent calender, counting down to Christmas. The challenges have inputs in the form of strings. Clojure.spec can be used to parse those inputs and turn them into useful data. The gist below works through some examples:

责编内容by:thegeez blog 【阅读原文】。感谢您的支持!

您可能感兴趣的

Wrangling State In Clojure “Clojure is immutable, so you can’t change anything, how useless!” Immutable l...
Macros in Elixir and Clojure To me Elixir and Clojure seem like sister programming languages. Both are moder...
Stop and divide the generated sequence at repetiti... I am trying to make a sequence that will only generate values until it finds ...
Clojure – the perfect language to expand you... I sometimes get asked for recommendations of what programming language to "lear...
Palindromic sequences in Clojure Lately I’ve been obsessed with palindromes . I have no idea why, but I find ...