From 8c9352bfad6864a0c00e72500d67492c072f4372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Tue, 26 Aug 2014 17:22:18 +0200 Subject: stdlib: Document maps:with/2 --- lib/stdlib/doc/src/maps.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/stdlib/doc/src') 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 @@ -318,6 +318,23 @@ false + + + + +

+ Returns a new map Map2 with the keys K1 through Kn and their associated values from map Map1. + Any key in Ks that does not exist in Map1 are ignored. +

+

Example:

+ +> Map = #{42 => value_three,1337 => "value two","a" => 1}, + Ks = ["a",42,"other key"], + maps:without(Ks,Map). +#{42 => value_three,"a" => 1} +
+
+ -- cgit v1.2.3