added named vs anonymous function example

Signed-off-by: Sean Wesenberg <wookets@gmail.com>