aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/maps.xml
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-09-05 09:49:59 +0200
committerIngela Anderton Andin <[email protected]>2014-09-05 09:49:59 +0200
commit38f49f460ffee0f6f3cbfef129c76e160c63d1a4 (patch)
tree7ee410b853ca2ad861c60409fa4fc5d65c3636a9 /lib/stdlib/doc/src/maps.xml
parent8ad5bd0ef8143f5ac32bd2df11d59a20e7eb0527 (diff)
parent35ff91189c8dd4ceed3d8f29536f500787ba4782 (diff)
downloadotp-38f49f460ffee0f6f3cbfef129c76e160c63d1a4.tar.gz
otp-38f49f460ffee0f6f3cbfef129c76e160c63d1a4.tar.bz2
otp-38f49f460ffee0f6f3cbfef129c76e160c63d1a4.zip
Merge branch 'maint' of git-server:otp into maint
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>