Hacker News new | ask | show | jobs
by L8D 4537 days ago
You do realize that go has lambda expressions (anonymous, in-line, functions) right?
1 comments

I do know this, but it is not sufficient to solve the problem we are discussing. (Or, to put the statement in the form of a question, how do you propose solving the problem using lambdas?)
You could pass the length and two functions for lessThan and swap.