support for ruby-style anonymous functions