From 50cbd99857a674f2b082f5c436b7e721d33f4cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Sun, 16 Mar 2014 23:32:44 +0100 Subject: erts: Document map guard functions * erlang:is_map/1 * erlang:map_size/1 --- erts/doc/src/erlang.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index aeded7c719..e34646eaf0 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -1783,6 +1783,15 @@ os_prompt%

Allowed in guard tests.

+ + + Check whether a term is a map + +

Returns true if Term is a map; + otherwise returns false.

+

Allowed in guard tests.

+
+
Check whether a term is a number @@ -2219,6 +2228,17 @@ os_prompt% {{[],aa,[],[],zz} + + + Return the size of a map + +

Returns an integer which is the number of key-value pairs in Map.

+
+> map_size(#{a=>1, b=>2, c=>3}).
+3
+

Allowed in guard tests.

+
+
Return the largest of two term -- cgit v1.2.3