Le 10/06/2021 à 16:16, tyson andre a écrit :
So I'm probably changing this to `ImmutableTraversable` as a short name for the
functionality,
to make it clear arguments are eagerly evaluated when it is created.
(ImmutableSequence may be expected to only contain values, and would be
confused with the ds PECL's https://www.php.net/manual/en/class.ds-sequence.php)
Hello,
And why not simply RewindableIterator ? Isn't it the prominent feature
of it ?
Agreed it's immutable, but a lot of traversable could be as well.
Regards,
--
Pierre
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php