Implement Fn trait for blocks.