- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 2,677 for map1 (0.13 sec)
-
android/guava/src/com/google/common/collect/Maps.java
implements MapDifference<K, V> { final Map<K, V> onlyOnLeft; final Map<K, V> onlyOnRight; final Map<K, V> onBoth; final Map<K, ValueDifference<V>> differences; MapDifferenceImpl( Map<K, V> onlyOnLeft, Map<K, V> onlyOnRight, Map<K, V> onBoth, Map<K, ValueDifference<V>> differences) { this.onlyOnLeft = unmodifiableMap(onlyOnLeft);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sun Jun 02 13:36:19 UTC 2024 - 159.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
// == cannot be used to check for equivalence, and thus we cannot // simply use a Go map. // // Just as with map[K]V, a nil *Map is a valid empty map. // // Not thread-safe. type Map struct { hasher Hasher // shared by many Maps table map[uint32][]entry // maps hash to bucket; entry.key==nil means unused length int // number of map entries } // entry is an entry (key/value association) in a hash bucket.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/map2.go
// license that can be found in the LICENSE file. // This file is like map.go, but instead of importing chans, it contains // the necessary functionality at the end of the file. // Package orderedmap provides an ordered map, implemented as a binary tree. package orderedmap // Map is an ordered map. type Map[K, V any] struct { root *node[K, V] compare func(K, K) int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 12:49:49 UTC 2023 - 3.4K bytes - Viewed (0) -
test/stress/maps.go
"runtime" "sync" ) func mapTypes() []MapType { // TODO(bradfitz): bunch more map types of all different key and value types. // Use reflect.MapOf and a program to generate lots of types & struct types. // For now, just one: return []MapType{intMapType{}} } type MapType interface { NewMap() Map } type Map interface { AddItem() DelItem() Len() int GetItem() RangeAll() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.8K bytes - Viewed (0) -
test/codegen/maps.go
for k = range m { delete(m, k) } return k } func MapLiteralSizing(x int) (map[int]int, map[int]int) { // This is tested for internal/abi/maps.go:MapBucketCountBits={3,4,5} // amd64:"MOVL\t[$]33," m := map[int]int{ 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 23 15:51:32 UTC 2023 - 3.6K bytes - Viewed (0) -
test/typeparam/maps.go
} // _Equal reports whether two maps contain the same key/value pairs. // _Values are compared using ==. func _Equal[K, V comparable](m1, m2 map[K]V) bool { if len(m1) != len(m2) { return false } for k, v1 := range m1 { if v2, ok := m2[k]; !ok || v1 != v2 { return false } } return true } // _Copy returns a copy of m. func _Copy[K comparable, V any](m map[K]V) map[K]V { r := make(map[K]V, len(m))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0) -
src/runtime/map.go
dst.nevacuate = 0 // flags do not need to be copied here, just like a new map has no flags. if src.count == 0 { return dst } if src.flags&hashWriting != 0 { fatal("concurrent map clone and map write") } if src.B == 0 && !(t.IndirectKey() && t.NeedKeyUpdate()) && !t.IndirectElem() { // Quick copy for small maps. dst.buckets = newobject(t.Bucket) dst.count = src.count
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 57.6K bytes - Viewed (0) -
pilot/pkg/serviceregistry/util/workloadinstances/map.go
) // MultiValueMap represents a map where each key might be associated with // multiple values. type MultiValueMap map[string]sets.String // Insert adds given (key, value) pair into the map. func (m MultiValueMap) Insert(key, value string) MultiValueMap { sets.InsertOrNew(m, key, value) return m } // Delete removes given (key, value) pair out of the map.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 08 02:49:42 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/Maps.kt
*/ package org.gradle.kotlin.dsl.support internal fun excludeMapFor(group: String?, module: String?): Map<String, String> = mapOfNonNullValuesOf( "group" to group, "module" to module ) internal fun mapOfNonNullValuesOf(vararg entries: Pair<String, String?>): Map<String, String> = mutableMapOf<String, String>().apply { for ((k, v) in entries) { if (v != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.1K bytes - Viewed (0) -
test/map.go
mss := make(map[string]string) mspa := make(map[string][]string) // BUG need an interface map both ways too type T struct { i int64 // can't use string here; struct values are only compared at the top level f float32 } mipT := make(map[int]*T) mpTi := make(map[*T]int) mit := make(map[int]T) // mti := make(map[T] int) type M map[int]int mipM := make(map[int]M) var apT [2 * count]*T
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 06 21:02:55 UTC 2014 - 14.9K bytes - Viewed (0)