r/programming • u/SilasX • May 09 '15
"Real programmers can do these problems easily"; author posts invalid solution to #4
https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k
Upvotes
r/programming • u/SilasX • May 09 '15
1
u/Godd2 May 10 '15
I love interleave. It's probably my favorite sequence-manipulating function in Clojure.
We sort of have it in Ruby, but it doesn't deal with the edge cases the same way, an it makes an array of arrays, instead of a flat list or array, so you have to flatten it.