Comment Comment by vbsteven I like Kotlins solution for this. If there is only one argument in the lambda/block and the type is clear from the context you don’t have to declare it and you can use the ‘it’ keyword instead. parent vbsteven 7 years ago