aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-08-26 17:22:18 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-08-26 17:22:18 +0200
commit8c9352bfad6864a0c00e72500d67492c072f4372 (patch)
treeedd9d88ab082773e35451964a477b6e949570765 /lib
parent3703b8964991fee50ea36f71fba115c6abc10e0b (diff)
downloadotp-8c9352bfad6864a0c00e72500d67492c072f4372.tar.gz
otp-8c9352bfad6864a0c00e72500d67492c072f4372.tar.bz2
otp-8c9352bfad6864a0c00e72500d67492c072f4372.zip
stdlib: Document maps:with/2
Diffstat (limited to 'lib')
-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>