Specifying return type in function literal is redundant here. Explicit parameter can be also omitted ("it" name will be auto-generated for it).