Skip to content

Commit

Permalink
Allow iterable for Vec\concat first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosprotung committed Sep 30, 2024
1 parent 6683d60 commit 3fa86c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psl/Vec/concat.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
*
* @template T
*
* @param list<T> $first
* @param iterable<T> $first
* @param iterable<T> ...$rest
*
* @return list<T>
*/
function concat(array $first, iterable ...$rest): array
function concat(iterable $first, iterable ...$rest): array
{
$first = values($first);
foreach ($rest as $arr) {
Expand Down

0 comments on commit 3fa86c9

Please sign in to comment.