- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 931 for map1 (0.46 sec)
-
src/runtime/pprof/protomem_test.go
Location: []*profile.Location{ {ID: 1, Mapping: map1, Address: addr1}, {ID: 2, Mapping: map2, Address: addr2}, }, NumLabel: map[string][]int64{"bytes": {1024}}, }, { Value: []int64{1, 829411, 1, 829411}, Location: []*profile.Location{ {ID: 3, Mapping: map2, Address: addr2 + 1}, {ID: 4, Mapping: map2, Address: addr2 + 2}, }, NumLabel: map[string][]int64{"bytes": {512 * 1024}}, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:45 UTC 2024 - 6.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ConventionAwareHelperTest.java
conventionAware.map("list1", new Callable<Object>() { public Object call() { return toList("a"); } }); assertThat(conventionAware.getConventionValue(emptyList(), "list1", false), equalTo((Object) toList("a"))); } @Test public void usesConventionValueForEmptyMap() { conventionAware.map("map1", new Callable<Object>() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.9K bytes - Viewed (0) -
src/encoding/gob/type_test.go
} } func TestMapType(t *testing.T) { var m map[string]int mapStringInt := getTypeUnlocked("map", reflect.TypeOf(m)) var newm map[string]int newMapStringInt := getTypeUnlocked("map1", reflect.TypeOf(newm)) if mapStringInt != newMapStringInt { t.Errorf("second registration of map[string]int creates new type") } var b map[string]bool mapStringBool := getTypeUnlocked("", reflect.TypeOf(b))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:26:13 UTC 2023 - 6.1K bytes - Viewed (0) -
pkg/maps/maps.go
// limitations under the License. package maps import "maps" // nolint: depguard // Equal reports whether two maps contain the same key/value pairs. // Values are compared using ==. func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool { return maps.Equal(m1, m2) } // Clone returns a copy of the map. // The elements are copied using assignment, so this is a shallow clone.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 01 22:48:35 UTC 2024 - 2.5K bytes - Viewed (0) -
src/maps/maps.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package maps defines various functions useful with maps of any type. package maps import ( _ "unsafe" ) // Equal reports whether two maps contain the same key/value pairs. // Values are compared using ==. func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool { if len(m1) != len(m2) { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 20:35:05 UTC 2024 - 1.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/Maps.java
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8K 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) -
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) -
src/go/types/map.go
// Source: ../../cmd/compile/internal/types2/map.go // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types // A Map represents a map type. type Map struct { key, elem Type } // NewMap returns a new map for the given key and element types. func NewMap(key, elem Type) *Map { return &Map{key: key, elem: elem} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 781 bytes - Viewed (0) -
src/internal/abi/map.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package abi // Map constants common to several packages // runtime/runtime-gdb.py:MapTypePrinter contains its own copy const ( // Maximum number of key/elem pairs a bucket can hold. MapBucketCountBits = 3 // log2 of number of elements in a bucket. MapBucketCount = 1 << MapBucketCountBits
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 20:09:01 UTC 2024 - 719 bytes - Viewed (0)