Practicalli Clojure 33 - 4Clojure 53 - Going a bit too loopy with sub-sequences
Channel: Practicalli
Date: 2019-06-29

Practicalli broadcasts, books and articles are created with your support https://practicalli.github.io/#support
A discussion 4Clojure challenge number 53.  I think this is the hardest challenge I have come across, especially to do in a very functional way.

I'll walk through a loop/recur approach (it gets quite long) and then refactor to something a bit more functional.  Ideally this is a function that probably benefits from being multiple functions, but that doesn't quite fit with how 4Clojure works unfortunately.

We will solve the challenges, refactor any solutions and look at other solutions submitted to 4Clojure.

Source code for all 4Clojure challenges covered so far is at
https://github.com/jr0cket/four-clojure