aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-04-29 09:54:12 +0200
committerBjörn Gustavsson <[email protected]>2016-04-29 09:54:12 +0200
commit06fe4914224a7172a60d318e15885841981b746d (patch)
tree030df2277391ee052f77df65fb6da1c133d39f3d /lib/stdlib/doc/src
parente142c20d5d751c0b9ba8c059249097b459ac329e (diff)
parentc660e30a7dd781f71bed050b20c3e2d0b069e063 (diff)
downloadotp-06fe4914224a7172a60d318e15885841981b746d.tar.gz
otp-06fe4914224a7172a60d318e15885841981b746d.tar.bz2
otp-06fe4914224a7172a60d318e15885841981b746d.zip
Merge branch 'jlouis/stdlib/implement-lists-join/PR-1012/OTP-13523'
* jlouis/stdlib/implement-lists-join/PR-1012/OTP-13523: Implement lists:join/2
Diffstat (limited to 'lib/stdlib/doc/src')
-rw-r--r--lib/stdlib/doc/src/lists.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml
index a8435efc6f..03d0063599 100644
--- a/lib/stdlib/doc/src/lists.xml
+++ b/lib/stdlib/doc/src/lists.xml
@@ -262,6 +262,21 @@ flatmap(Fun, List1) ->
</desc>
</func>
<func>
+ <name name="join" arity="2"/>
+ <fsummary>Insert an element between elements in a list</fsummary>
+ <desc>
+ <p>Inserts <c><anno>Sep</anno></c> between each element in <c><anno>List1</anno></c>. Has no
+ effect on the empty list and on a singleton list. For example:</p>
+ <pre>
+> <input>lists:join(x, [a,b,c]).</input>
+[a,x,b,x,c]
+> <input>lists:join(x, [a]).</input>
+[a]
+> <input>lists:join(x, []).</input>
+[]</pre>
+ </desc>
+ </func>
+ <func>
<name name="foreach" arity="2"/>
<fsummary>Apply a function to each element of a list</fsummary>
<desc>