scala function syntax