Skip to content

Commit 4ea17f7

Browse files
xperiandriclaude
andcommitted
fixup! docs: Stack and IStack in the changelog and the collection table
The changelog lists the compiled names of `tryHead`, `tryTail` and `tryUncons`, and says that `IStack.append` keeps the implementation and the nodes of its second stack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 60c3ff2 commit 4ea17f7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
exceptions and with stable sorts, plus `consMany`, `ofReadOnlySpan`, `ofSpan`, `skipLast`, `sortWithComparer`,
3131
`takeLast`, `tryTail`, `tryUncons`, `uncons` and the struct partial active patterns `Cons` and `Nil`. Its functions name
3232
their stacks `stack`, `stack1` and `stacks` where `List` names its lists, and the exceptions report these names. `cons`,
33-
`consMany`, `head`, `tail` and `uncons` compile to `Push`, `PushMany`, `Peek`, `Pop` and `PeekPop`.
33+
`consMany`, `head`, `tail` and `uncons` compile to `Push`, `PushMany`, `Peek`, `Pop` and `PeekPop`, and `tryHead`,
34+
`tryTail` and `tryUncons` to `TryPeek`, `TryPop` and `TryPeekPop`, in the `IStack`, `Option` and `Tuple` modules too.
3435
* The `IStack` module has the functions of `Stack` for `IImmutableStack<'T>`, without the creation functions, plus
3536
`clear`. Its functions keep the implementation of the input stack where the result has the element type of the input,
36-
and return a `Stack` otherwise.
37+
and return a `Stack` otherwise. `append` pushes the first stack onto the second one, so its result keeps the
38+
implementation and the nodes of the second stack, as `List.append` shares its second list.
3739
* The `FSharp.Collections.Immutable.Option` and `FSharp.Collections.Immutable.Tuple` namespaces have `Stack` and `IStack`
3840
modules that repeat the functions that use value options or struct tuples with options and reference tuples.
3941
* `stack { }` builds a stack whose first element is on top.

0 commit comments

Comments
 (0)