Int64sToMap converts a slice of int64 to a int64 map.
(ints []int64)
| 367 | |
| 368 | // Int64sToMap converts a slice of int64 to a int64 map. |
| 369 | func Int64sToMap(ints []int64) map[int64]bool { |
| 370 | m := make(map[int64]bool) |
| 371 | for _, i := range ints { |
| 372 | m[i] = true |
| 373 | } |
| 374 | return m |
| 375 | } |
| 376 | |
| 377 | // IsLetter reports whether the rune is a letter (category L). |
| 378 | // https://github.com/golang/go/blob/master/src/go/scanner/scanner.go#L257 |