Remove anonymous function

One way to speed up Julia code is to avoid anonymous functions, which don't get type-specialized in the current version of Julia.
Merge pull request #1 from johnmyleswhite/patch-1

Remove anonymous function