for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Improved;
/**
* Set all values of the iterable.
*
* @param iterable $iterable
* @param mixed $value
* @return \Generator
*/
function iterable_fill(iterable $iterable, $value): \Generator
{
foreach ($iterable as $key => $_) {
yield $key => $value;
}