aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2019-01-16 08:23:02 +0100
committerHans Bolinder <[email protected]>2019-01-16 08:23:02 +0100
commit99fbb24b5396749b698474165880f84e3c799b49 (patch)
treec231e9dfa647d46f5b32677bd91a36f0b24af680 /lib
parent298f1c09da0778c895d95f79f170ea447b3774c0 (diff)
parentcc0d70b967d7c1cb205a26a63b898203eeda10e9 (diff)
downloadotp-99fbb24b5396749b698474165880f84e3c799b49.tar.gz
otp-99fbb24b5396749b698474165880f84e3c799b49.tar.bz2
otp-99fbb24b5396749b698474165880f84e3c799b49.zip
Merge branch 'jfw7/stdlib/fix_doc_lists/PR-2049' into maint
* jfw7/stdlib/fix_doc_lists/PR-2049: Fix sorting in lists.xml
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/doc/src/lists.xml26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml
index 66146e9258..2755fb3dce 100644
--- a/lib/stdlib/doc/src/lists.xml
+++ b/lib/stdlib/doc/src/lists.xml
@@ -4,7 +4,7 @@
<erlref>
<header>
<copyright>
- <year>1996</year><year>2018</year>
+ <year>1996</year><year>2019</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
@@ -689,6 +689,18 @@ c</pre>
</func>
<func>
+ <name name="search" arity="2" since="OTP 21.0"/>
+ <fsummary>Find the first element that satisfies a predicate.</fsummary>
+ <desc>
+ <p>If there is a <c><anno>Value</anno></c> in <c><anno>List</anno></c>
+ such that <c><anno>Pred</anno>(<anno>Value</anno>)</c> returns
+ <c>true</c>, returns <c>{value, <anno>Value</anno>}</c>
+ for the first such <c><anno>Value</anno></c>,
+ otherwise returns <c>false</c>.</p>
+ </desc>
+ </func>
+
+ <func>
<name name="seq" arity="2" since=""/>
<name name="seq" arity="3" since=""/>
<fsummary>Generate a sequence of integers.</fsummary>
@@ -771,18 +783,6 @@ length(lists:seq(From, To, Incr)) =:= (To - From + Incr) div Incr</code>
</func>
<func>
- <name name="search" arity="2" since="OTP 21.0"/>
- <fsummary>Find the first element that satisfies a predicate.</fsummary>
- <desc>
- <p>If there is a <c><anno>Value</anno></c> in <c><anno>List</anno></c>
- such that <c><anno>Pred</anno>(<anno>Value</anno>)</c> returns
- <c>true</c>, returns <c>{value, <anno>Value</anno>}</c>
- for the first such <c><anno>Value</anno></c>,
- otherwise returns <c>false</c>.</p>
- </desc>
- </func>
-
- <func>
<name name="splitwith" arity="2" since=""/>
<fsummary>Split a list into two lists based on a predicate.</fsummary>
<desc>