|
|
@ -161,6 +161,25 @@ interface IImmutableCollection extends IteratorAggregate, JsonSerializable, Coun
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static function split (string $value, string $separator): static;
|
|
|
|
public static function split (string $value, string $separator): static;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Create a collection filled with the same element
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param int $size The collection size
|
|
|
|
|
|
|
|
* @param TValue $value The value to fill the collection
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return static<int, TValue> The result collection
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static function fill (int $size, $value): static;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Create a collection filled with the same element, using a list of keys
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param IImmutableCollection<TKey> $keys The list of keys
|
|
|
|
|
|
|
|
* @param TValue $value The value to fill the collection
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return static<TKey, TValue> The result collection
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static function fillWithKeys (IImmutableCollection $keys, $value): static;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Merge the current collection with one or multiple collections
|
|
|
|
* Merge the current collection with one or multiple collections
|
|
|
|
*
|
|
|
|
*
|
|
|
|