News for hackers. Stuff that matters.
Re:Boltons: A set of BSD-licensed, pure-Python utilities by gugagore on Tuesday October 09, 2018 @08:43PM (#18181042)
Two that I run into all the time: 1. pairwise iteration over a (cylic) list of points representing the ordered vertices of a polygon will give you a sequence of edges

2. np.diff, takes differences between consecutive pairs. Sometimes you have a different kind of "difference" operation, though. The pairwise iteration helps you express that.

There are no comments on this comment yet.