Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,311 for map1 (0.25 sec)

  1. src/internal/types/testdata/check/map1.go

    // license that can be found in the LICENSE file.
    
    // This file is like map.go2, but instead if 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: Fri Sep 02 02:58:32 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. 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)
  3. subprojects/core/src/testFixtures/groovy/org/gradle/util/TestTask.groovy

    class TestTask extends ConventionTask  {
        @Internal
        TestTask self
        @Internal
        String customProp
        @Internal
        List list1
        @Internal
        List list2
        @Internal
        Map map1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 26 10:58:32 UTC 2023
    - 922 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/main/java/org/codelibs/core/collection/Maps.java

         */
        protected Maps(final Map<K, V> map) {
            this.map = map;
        }
    
        /**
         * {@link Map}にキーと値を追加します。
         *
         * @param key
         *            <code>Map</code>に追加されるキー
         * @param value
         *            <code>Map</code>に追加される値
         * @return このインスタンス自身
         */
        public Maps<K, V> $(final K key, final V value) {
            map.put(key, value);
            return this;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top