Strange tooling interaction bug(?)

2016-10-01 Thread James Gatannah
I recently decided to try out devcards. I got an error because my ancient java version is no longer supported. I've been meaning to upgrade that dev environment, so I went ahead and bumped it from ubuntu 14.04 to 16.04. Once that was finished, I went back to my experimental devcards project to try

Re: better way to group consecutive numbers in a vector?

2016-10-01 Thread Rob Jentzema
Nice, I like that solution. Clean, logical and semantical :) (defn consecutive? [[x y]] (= (inc x) y)) (def nonconsecutive? (complement consecutive?)) (partition-between nonconsecutive? [1 2 3 4 6 7 9 11 14 15]) ;=> ([1 2 3 4] [6 7] [9] [11] [14 15]) (partition-between consecutive? [1 2 3 4 6