Merge remote-tracking branch 'mathonsunday/master'
This commit is contained in:
@@ -37,7 +37,8 @@ func main() {
|
||||
// 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
|
||||
// like `0` or `""`.
|
||||
// like `0` or `""`. Here we didn't the value itself, so
|
||||
// we ignored it with the _blank identifier_ `_`.
|
||||
_, prs := m["k2"]
|
||||
fmt.Println("prs:", prs)
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
572365c80895f32241032397bd69094886892d90
|
||||
D-F9YN_V8r
|
||||
ee96724fc32ee253ba2a5390d66d6880d7fdd28f
|
||||
Z2ORjMdW_u
|
||||
|
||||
@@ -20,7 +20,7 @@ func main() {
|
||||
// `range` on arrays and slices provides both the
|
||||
// index and value for each entry. Above we didn't
|
||||
// need the index, so we ignored it with the
|
||||
// _blank identifier_ `_`. Sometimes we actually want
|
||||
// blank identifier `_`. Sometimes we actually want
|
||||
// the indexes though.
|
||||
for i, num := range nums {
|
||||
if num == 3 {
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
e6458150862a6b26e95629ba6a90a6a3036d7d52
|
||||
Ys3V-ohVRy
|
||||
67d7882d364517608741e4045aa10ba489b37987
|
||||
u2yg3m1eFT
|
||||
|
||||
Reference in New Issue
Block a user