<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>On Sat, Jul 25, 2015, at 10:30 AM, Timothy Washington wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Is there a Haskell equivalent to <a href="http://clojuredocs.org/clojure.core/partition">Clojure's partition</a> function? I'm particularly interested in the stepwise feature, where we can select a certain `n` size of the list, then step `m` and take again. <br></div>
</div>
</blockquote><div> </div>
<div>This is a great use case for a type-based search engine. Luckily, we have some of those!<br></div>
<div> </div>
<div>Here is a search that matches your question, I think:<br></div>
<div> </div>
<div><a href="http://hayoo.fh-wedel.de/?query=Int+-%3E+Int+-%3E+%5Ba%5D+-%3E+%5B%5Ba%5D%5D">http://hayoo.fh-wedel.de/?query=Int+-%3E+Int+-%3E+%5Ba%5D+-%3E+%5B%5Ba%5D%5D</a><br></div>
<div> </div>
<div>At this moment, there is one result, which appears to be exactly the thing you want. Unfortunately, it's an auxiliary function of a music theory package, which you may not want to install for that one function.<br></div>
<div> </div>
<div>There's a package called "split" that contains a bunch of useful tools for splitting lists. It doesn't  have exactly what you want, but it does have a function called "chop" that will get you most of the way there:<br></div>
<div> </div>
<div><a href="http://hackage.haskell.org/package/split-0.2.2/docs/Data-List-Split.html#v:chop">http://hackage.haskell.org/package/split-0.2.2/docs/Data-List-Split.html#v:chop</a><br></div>
<div> </div>
<div>-Karl<br></div>
</body>
</html>