Why won’t the action hook wp_head accept parameters?

Well, for me the problem, was including during the post content it would not work, but if i did included in the top of the page template model i created, then it would work if i used something like this: VALID FOR PHP 5.3+

$array = array("keywords" => "keywords here", "description" => "desc here");
add_action( 'wp_head', function() use ( $array ) {
    foreach ($array as $key => $value) {
        if ($key == "description") { echo "your meta here"; }
    }
}, 1 );