aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Svensson <[email protected]>2014-01-22 22:10:44 +0100
committerHans Svensson <[email protected]>2014-01-24 19:37:51 +0100
commit875b58c8119858676af0139b0f6b69537cae5706 (patch)
tree4df691e0272bc7af76bdebde2d8cb4d4caaa0a34 /lib
parent254e58d2f4799e40be1188d95d59cdc7a616f5d9 (diff)
downloadotp-875b58c8119858676af0139b0f6b69537cae5706.tar.gz
otp-875b58c8119858676af0139b0f6b69537cae5706.tar.bz2
otp-875b58c8119858676af0139b0f6b69537cae5706.zip
Added documentation of lists:droplast/1
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/doc/src/lists.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml
index 16f81bdba1..9c7cef066b 100644
--- a/lib/stdlib/doc/src/lists.xml
+++ b/lib/stdlib/doc/src/lists.xml
@@ -123,6 +123,14 @@
</desc>
</func>
<func>
+ <name name="droplast" arity="1"/>
+ <fsummary>Drop the last element of a list</fsummary>
+ <desc>
+ <p>Drops the last element of a <c><anno>List</anno></c>. The list should
+ be non-empty, otherwise the function will crash with a <c>function_clause</c></p>
+ </desc>
+ </func>
+ <func>
<name name="dropwhile" arity="2"/>
<fsummary>Drop elements from a list while a predicate is true</fsummary>
<desc>