Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • \$\begingroup\$ This is a promising approach; but it currently fails sometimes, e.g., when the Mask rectangle has no overlap with the Source rectangle; e.g. f([0, 30, 10, 40])([5, 1, 6, 2]) should return [[0, 30, 10, 40]] but instead returns [[0,30,5,40],[6,30,10,40]] \$\endgroup\$ Commented Jul 6, 2017 at 4:05
  • \$\begingroup\$ @NathanMerrill ok, edited. \$\endgroup\$ Commented Jul 6, 2017 at 5:11
  • \$\begingroup\$ @tsh looks good! \$\endgroup\$ Commented Jul 6, 2017 at 5:35