diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-09-04 14:40:44 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-09-04 14:40:44 +0200 |
commit | de618b04eb78702cff7c08f984d6779b8ef06895 (patch) | |
tree | dd95a76dad020700a67d289c359bf3ab7bd7efe7 /lib/stdlib/doc/src/maps.xml | |
parent | 8ad5bd0ef8143f5ac32bd2df11d59a20e7eb0527 (diff) | |
parent | 127f3e2594d96089aeb51c5652173acf5e3fe6fd (diff) | |
download | otp-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.xml | 17 |
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> |