aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/lists.xml
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2018-11-05 10:48:25 +0100
committerErlang/OTP <[email protected]>2018-11-05 10:48:25 +0100
commit6605e23f1c622cd6e30a523891f00f3e6ea746f8 (patch)
tree36119b24784e1b54770a4ca61680f9e9f219c5b6 /lib/stdlib/doc/src/lists.xml
parent1da4135c98d9160d2d890724eb423db1fd1e39a2 (diff)
parentbf5886b790f8f386ed425f543506a4bebb48448c (diff)
downloadotp-6605e23f1c622cd6e30a523891f00f3e6ea746f8.tar.gz
otp-6605e23f1c622cd6e30a523891f00f3e6ea746f8.tar.bz2
otp-6605e23f1c622cd6e30a523891f00f3e6ea746f8.zip
Merge branch 'john/erts/OTP-20.3.8/minusminus_trapping/OTP-15371' into maint-20
* john/erts/OTP-20.3.8/minusminus_trapping/OTP-15371: Optimize operator '--' and yield on large inputs
Diffstat (limited to 'lib/stdlib/doc/src/lists.xml')
-rw-r--r--lib/stdlib/doc/src/lists.xml8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml
index 7efafedc82..55227aaee5 100644
--- a/lib/stdlib/doc/src/lists.xml
+++ b/lib/stdlib/doc/src/lists.xml
@@ -838,14 +838,6 @@ splitwith(Pred, List) ->
> <input>lists:subtract("123212", "212").</input>
"312".</pre>
<p><c>lists:subtract(A, B)</c> is equivalent to <c>A -- B</c>.</p>
- <warning>
- <p>The complexity of <c>lists:subtract(A, B)</c> is proportional to
- <c>length(A)*length(B)</c>, meaning that it is very slow if both
- <c>A</c> and <c>B</c> are long lists. (If both lists are long, it
- is a much better choice to use ordered lists and
- <seealso marker="ordsets#subtract/2">
- <c>ordsets:subtract/2</c></seealso>.</p>
- </warning>
</desc>
</func>