diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-08-26 17:22:18 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-08-26 17:22:18 +0200 |
commit | 8c9352bfad6864a0c00e72500d67492c072f4372 (patch) | |
tree | edd9d88ab082773e35451964a477b6e949570765 /lib/stdlib | |
parent | 3703b8964991fee50ea36f71fba115c6abc10e0b (diff) | |
download | otp-8c9352bfad6864a0c00e72500d67492c072f4372.tar.gz otp-8c9352bfad6864a0c00e72500d67492c072f4372.tar.bz2 otp-8c9352bfad6864a0c00e72500d67492c072f4372.zip |
stdlib: Document maps:with/2
Diffstat (limited to 'lib/stdlib')
-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> |