<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>On Thu, Apr 28, 2016, at 02:13 PM, Pyry Jahkola via swift-evolution wrote:<br></div>
<blockquote type="cite"><blockquote type="cite">I would really like a different name for scan. While it’s the term of art for Haskell and co, it really seems meaningless to regular programmers (why is “scanning” the way you produce an array of intermediate reduces?), and it would be better to follow the pattern already established elsewhere in the library to give friendlier names e.g. flatMap instead of bind, reduce instead of fold.<br></blockquote><div><blockquote type="cite"><div><div><div> </div>
<div>I think Python calls it accumulate: <a href="http://docs.python.org/3/library/itertools.html#itertools.accumulate">http://docs.python.org/3/library/itertools.html#itertools.accumulate</a><br></div>
</div>
</div>
</blockquote><div> </div>
<div>FWIW, Clojure calls it `<a href="http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/reductions">reductions</a>` which aligns pretty nicely with the `reduce` counterpart.<br></div>
</div>
</blockquote><div> </div>
<div>I like it.</div>
<div> </div>
<div>-Kevin Ballard</div>
</body>
</html>