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.

2
  • Even if this is definitely not academic, this is pretty nice. Commented Jan 28, 2020 at 13:09
  • 1
    Hey! You don't actually need the reflect package in there. Plus, Go inlines helper functions pretty aggressively in the compiled binary, so subroutine calls end up basically free...and binaries are surprisingly big. The following might be bit more readable: play.golang.org/p/9z1GoskyKLL Commented Jun 23, 2021 at 14:15