diff options
author | Maria-12648430 <maria-12648430@gmx.net> | 2020-11-25 10:05:36 +0100 |
---|---|---|
committer | Maria-12648430 <maria-12648430@gmx.net> | 2020-11-25 10:05:36 +0100 |
commit | c54720eaa52d3c12c2a49ab0aa4950589b2b0b80 (patch) | |
tree | 53192308db60fbbae14f9806536950dfaf0fe0f6 /lib/stdlib/doc/src/queue.xml | |
parent | cb475e0126fc647ea5d97a58bb0d91139b7c6d02 (diff) | |
download | erlang-c54720eaa52d3c12c2a49ab0aa4950589b2b0b80.tar.gz |
Add delete_with/delete_with_r to the queue module
Diffstat (limited to 'lib/stdlib/doc/src/queue.xml')
-rw-r--r-- | lib/stdlib/doc/src/queue.xml | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/lib/stdlib/doc/src/queue.xml b/lib/stdlib/doc/src/queue.xml index 9d353fb856..08320f4ec4 100644 --- a/lib/stdlib/doc/src/queue.xml +++ b/lib/stdlib/doc/src/queue.xml @@ -57,6 +57,8 @@ <seemfa marker="#any/2"><c>any/2</c></seemfa>, <seemfa marker="#delete/2"><c>delete/2</c></seemfa>, <seemfa marker="#delete_r/2"><c>delete_r/2</c></seemfa>, + <seemfa marker="#delete_with/2"><c>delete_with/2</c></seemfa>, + <seemfa marker="#delete_with_r/2"><c>delete_with_r/2</c></seemfa>, <seemfa marker="#filter/2"><c>filter/2</c></seemfa>, <seemfa marker="#filtermap/2"><c>filtermap/2</c></seemfa>, <seemfa marker="#fold/3"><c>fold/3</c></seemfa>, @@ -147,7 +149,7 @@ <desc> <p>Returns a copy of <c><anno>Q1</anno></c> where the first item matching <c><anno>Item</anno></c> is deleted, if there is such an - element.</p> + item.</p> </desc> </func> @@ -157,7 +159,29 @@ <desc> <p>Returns a copy of <c><anno>Q1</anno></c> where the last item matching <c><anno>Item</anno></c> is deleted, if there is such an - element.</p> + item.</p> + </desc> + </func> + + <func> + <name name="delete_with" arity="2" since=""/> + <fsummary>Delete an item matching a predicate from the front of a + queue.</fsummary> + <desc> + <p>Returns a copy of <c><anno>Q1</anno></c> where the first item + for which <c><anno>Pred</anno></c> returns <c>true</c> is deleted, + if there is such an item.</p> + </desc> + </func> + + <func> + <name name="delete_with_r" arity="2" since=""/> + <fsummary>Delete an item matching a predicate from the rear of a + queue.</fsummary> + <desc> + <p>Returns a copy of <c><anno>Q1</anno></c> where the last item + for which <c><anno>Pred</anno></c> returns <c>true</c> is deleted, + if there is such an item.</p> </desc> </func> |