|
|
|
@ -178,6 +178,29 @@ interface IImmutableCollection extends IteratorAggregate, JsonSerializable, Seri
|
|
|
|
|
*/
|
|
|
|
|
public static function split (string $value, string $separator);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
*
|
|
|
|
|
* @noinspection PhpMissingReturnTypeInspection
|
|
|
|
|
*/
|
|
|
|
|
public static function fill (int $size, $value);
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
*
|
|
|
|
|
* @noinspection PhpMissingReturnTypeInspection
|
|
|
|
|
*/
|
|
|
|
|
public static function fillWithKeys (IImmutableCollection $keys, $value);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Merge the current collection with one or multiple collections
|
|
|
|
|
*
|
|
|
|
|