aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-09-04 14:41:22 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-09-04 14:41:22 +0200
commit0e3d82ec72c0f439812d154e92d591b981986037 (patch)
tree5aa24d78ca78f7ed05142abc161b48c8ceeed2c7 /lib/stdlib/doc/src
parentb3d60c0696395bee97e6a7244f16eda771b3ca39 (diff)
parentde618b04eb78702cff7c08f984d6779b8ef06895 (diff)
downloadotp-0e3d82ec72c0f439812d154e92d591b981986037.tar.gz
otp-0e3d82ec72c0f439812d154e92d591b981986037.tar.bz2
otp-0e3d82ec72c0f439812d154e92d591b981986037.zip
Merge branch 'maint'
Diffstat (limited to 'lib/stdlib/doc/src')
-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>