add closure syntax examples

Add different ways that you can pass a closure to a function from the most verbose to the least verbose syntax.