aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/maps.xml
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-09-04 14:40:44 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-09-04 14:40:44 +0200
commitde618b04eb78702cff7c08f984d6779b8ef06895 (patch)
treedd95a76dad020700a67d289c359bf3ab7bd7efe7 /lib/stdlib/doc/src/maps.xml
parent8ad5bd0ef8143f5ac32bd2df11d59a20e7eb0527 (diff)
parent127f3e2594d96089aeb51c5652173acf5e3fe6fd (diff)
downloadotp-de618b04eb78702cff7c08f984d6779b8ef06895.tar.gz
otp-de618b04eb78702cff7c08f984d6779b8ef06895.tar.bz2
otp-de618b04eb78702cff7c08f984d6779b8ef06895.zip
Merge branch 'egil/maps-with-doc-tests/OTP-12137' into maint
* egil/maps-with-doc-tests/OTP-12137: stdlib: Test maps:with/2 stdlib: Document maps:with/2
Diffstat (limited to 'lib/stdlib/doc/src/maps.xml')
-rw-r--r--lib/stdlib/doc/src/maps.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/maps.xml b/lib/stdlib/doc/src/maps.xml
index b37f7fd7fd..64229fa8d3 100644
--- a/lib/stdlib/doc/src/maps.xml
+++ b/lib/stdlib/doc/src/maps.xml
@@ -319,6 +319,23 @@ false</code>
</func>
<func>
+ <name name="with" arity="2"/>
+ <fsummary></fsummary>
+ <desc>
+ <p>
+ Returns a new map <c><anno>Map2</anno></c> with the keys <c>K1</c> through <c>Kn</c> and their associated values from map <c><anno>Map1</anno></c>.
+ Any key in <c><anno>Ks</anno></c> that does not exist in <c><anno>Map1</anno></c> are ignored.
+ </p>
+ <p>Example:</p>
+ <code type="none">
+> Map = #{42 => value_three,1337 => "value two","a" => 1},
+ Ks = ["a",42,"other key"],
+ maps:without(Ks,Map).
+#{42 => value_three,"a" => 1}</code>
+ </desc>
+ </func>
+
+ <func>
<name name="without" arity="2"/>
<fsummary></fsummary>
<desc>