Only for the geeks: Scala is/ain't Java
Finally a bit of code that makes me happy:
def makeClosure(bindMe: Int) = (x: Int) => x + bindMe
A closure that binds at the time the closure is created.
Finally a bit of code that makes me happy:
def makeClosure(bindMe: Int) = (x: Int) => x + bindMe
A closure that binds at the time the closure is created.