Impetus: I was looking for something in python which would get me
f([1,2,3]) == [[1,2,3], [2,3], [3]]
In clojure, this would just be (nest rest #(not (empty? %)) lst)
, or it would if we had a nest function. Do we? I'm tired of staring at the clojure api list..
Better approaches in python or clojure would also be appreciated..