diff options
| author | Hans Bolinder <[email protected]> | 2019-01-16 08:26:21 +0100 | 
|---|---|---|
| committer | Hans Bolinder <[email protected]> | 2019-01-16 08:26:21 +0100 | 
| commit | 100a2821a9c81e43eff47719330148771f9cd6e5 (patch) | |
| tree | d6d3ed5f6c626822a3124a5e1c2c7fc08eed3a67 /lib/stdlib/doc/src | |
| parent | 1319199c3c2603b627703a031daeab71c8c5c286 (diff) | |
| parent | 99fbb24b5396749b698474165880f84e3c799b49 (diff) | |
| download | otp-100a2821a9c81e43eff47719330148771f9cd6e5.tar.gz otp-100a2821a9c81e43eff47719330148771f9cd6e5.tar.bz2 otp-100a2821a9c81e43eff47719330148771f9cd6e5.zip | |
Merge branch 'maint'
* maint:
  Fix sorting in lists.xml
Diffstat (limited to 'lib/stdlib/doc/src')
| -rw-r--r-- | lib/stdlib/doc/src/lists.xml | 26 | 
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> | 
