From cb34420198c91e454f4e0523b997604f067c5be4 Mon Sep 17 00:00:00 2001 From: mathonsunday Date: Tue, 6 Jan 2015 21:22:07 -0800 Subject: [PATCH] Added blank identifier explanation to maps --- public/maps | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/maps b/public/maps index 43e7055..399dc0f 100644 --- a/public/maps +++ b/public/maps @@ -159,7 +159,10 @@ a map.

-

The optional second return value when getting a +

Above we didn’t +need the index, so we ignored it with the +blank identifier _. +The optional second return value when getting a value from a map indicates if the key was present in the map. This can be used to disambiguate between missing keys and keys with zero values