You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For native PHP arrays, there is a array_combine function which combines the values of two arrays to a map where all values from the first array are used as keys and all values of the 2nd array are used values.
Obviously, both arrays have to have the same size. The value which is passed to OrderedListInterface#combine should represent the keys while the OrderedListInterface itself can be used as values.
/** * @template TValue */interfaceOrderedListInterface
{
/**
* @template T of array-key
* @param OrderedListInterface<T> $keys
* @return MapInterface<T,TValue>
public function combine(OrderedListInterface$keys): MapInterface;
}
The text was updated successfully, but these errors were encountered:
For native PHP arrays, there is a
array_combine
function which combines the values of two arrays to a map where all values from the first array are used as keys and all values of the 2nd array are used values.Obviously, both arrays have to have the same size. The value which is passed to
OrderedListInterface#combine
should represent the keys while theOrderedListInterface
itself can be used asvalues
.The text was updated successfully, but these errors were encountered: