Conversation
- Remove docs for classes removed in v2: Vector, Deque, Stack, Queue, PriorityQueue, Collection, Sequence, Hashable - Add docs for new v2 classes: Seq, Heap, Key - Update Map, Set, Pair docs for v2 API changes - Add missing method docs: getIterator, ArrayAccess methods, __serialize/__unserialize across all collection classes - Fix missing ksorted entry in versions.xml Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| <varlistentry xml:id="ds-seq.constants.min-capacity"> | ||
| <term><constant>Ds\Seq::MIN_CAPACITY</constant></term> | ||
| <listitem> | ||
| <para></para> |
There was a problem hiding this comment.
| <para></para> | |
| <simpara>The minimum capacity of a <classname>Ds\Seq</classname>.</simpara> |
| <varlistentry xml:id="ds-set.constants.min-capacity"> | ||
| <term><constant>Ds\Set::MIN_CAPACITY</constant></term> | ||
| <listitem> | ||
| <para></para> |
There was a problem hiding this comment.
| <simpara>The minimum capacity of a <classname>Ds\Set</classname>.</simpara> |
| <varlistentry xml:id="ds-map.constants.min-capacity"> | ||
| <term><constant>Ds\Map::MIN_CAPACITY</constant></term> | ||
| <listitem> | ||
| <para></para> |
There was a problem hiding this comment.
| <simpara>The minimum capacity of a <classname>Ds\Map</classname>.</simpara> |
| <varlistentry xml:id="ds-heap.constants.min-capacity"> | ||
| <term><constant>Ds\Heap::MIN_CAPACITY</constant></term> | ||
| <listitem> | ||
| <para></para> |
There was a problem hiding this comment.
| <para></para> | |
| <simpara>The minimum capacity of a <classname>Ds\Heap</classname>.</simpara> |
| The name is a common abbreviation of “double-ended queue” and is used | ||
| internally by <classname>Ds\Queue</classname>. | ||
| A Seq is an ordered sequence of values in a contiguous buffer that grows | ||
| and shrinks automatically. It replaces both <classname>Ds\Vector</classname> |
There was a problem hiding this comment.
| and shrinks automatically. It replaces both <classname>Ds\Vector</classname> | |
| and shrinks automatically. It replaces both <literal>Ds\Vector</literal> |
| internally by <classname>Ds\Queue</classname>. | ||
| A Seq is an ordered sequence of values in a contiguous buffer that grows | ||
| and shrinks automatically. It replaces both <classname>Ds\Vector</classname> | ||
| and <classname>Ds\Deque</classname> from v1. |
There was a problem hiding this comment.
| and <classname>Ds\Deque</classname> from v1. | |
| and <literal>Ds\Deque</literal> from v1. |
| is provided, the heap behaves as a max-heap using standard comparison. | ||
| </para> | ||
| <para> | ||
| Replaces <classname>Ds\PriorityQueue</classname> from v1, providing more |
There was a problem hiding this comment.
| Replaces <classname>Ds\PriorityQueue</classname> from v1, providing more | |
| Replaces <literal>Ds\PriorityQueue</literal> from v1, providing more |
| <para> | ||
| Key is an interface that allows objects to be used as keys in a | ||
| <classname>Ds\Map</classname> or values in a <classname>Ds\Set</classname>. | ||
| It replaces <classname>Ds\Hashable</classname> from v1. |
There was a problem hiding this comment.
| It replaces <classname>Ds\Hashable</classname> from v1. | |
| It replaces <literal>Ds\Hashable</literal> from v1. |
| <row> | ||
| <entry>PECL ds 2.0.0</entry> | ||
| <entry> | ||
| No longer implements <classname>Ds\Collection</classname>. |
There was a problem hiding this comment.
| No longer implements <classname>Ds\Collection</classname>. | |
| No longer implements <literal>Ds\Collection</literal>. |
| <row> | ||
| <entry>PECL ds 2.0.0</entry> | ||
| <entry> | ||
| No longer implements <classname>Ds\Collection</classname>. |
There was a problem hiding this comment.
| No longer implements <classname>Ds\Collection</classname>. | |
| No longer implements <literal>Ds\Collection</literal>. |
| <para> | ||
| &return.void; | ||
| </para> | ||
| </refsect1> |
There was a problem hiding this comment.
Ds\Seq narrows the mixed offset to int at runtime and throws a TypeError otherwise here. Could we add a short <refsect1 role="errors"> here mentioning the TypeError for non-int offsets?
| Returns &true; if the deque is empty, &false; otherwise. | ||
| The value at the given offset. | ||
| </para> | ||
| </refsect1> |
There was a problem hiding this comment.
Ds\Seq narrows the mixed offset to int at runtime and throws a TypeError otherwise here. Could we add a short <refsect1 role="errors"> here mentioning the TypeError for non-int offsets?
| <para> | ||
| &true; if the offset is valid, &false; otherwise. | ||
| </para> | ||
| </refsect1> |
There was a problem hiding this comment.
Ds\Seq narrows the mixed offset to int at runtime and throws a TypeError otherwise here. Could we add a short <refsect1 role="errors"> here mentioning the TypeError for non-int offsets?
| <para> | ||
| &return.void; | ||
| </para> | ||
| </refsect1> |
There was a problem hiding this comment.
Ds\Seq narrows the mixed offset to int at runtime and throws a TypeError otherwise here. Could we add a short <refsect1 role="errors"> here mentioning the TypeError for non-int offsets?
Summary
See ext-ds v2.0.0 changelog for full details on the API changes.
Test plan
🤖 Generated with Claude Code