Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for MakeMap (0.15 sec)

  1. src/runtime/map.go

    	h.hash0 = uint32(rand())
    	return h
    }
    
    // makemap implements Go map creation for make(map[k]v, hint).
    // If the compiler has determined that the map or the first bucket
    // can be created on the stack, h and/or bucket may be non-nil.
    // If h != nil, the map can be created directly in h.
    // If h.buckets != nil, bucket pointed to can be used as the first bucket.
    //
    // makemap should be an internal detail,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. src/text/template/exec_test.go

    func add(args ...int) int {
    	sum := 0
    	for _, x := range args {
    		sum += x
    	}
    	return sum
    }
    
    func echo(arg any) any {
    	return arg
    }
    
    func makemap(arg ...string) map[string]string {
    	if len(arg)%2 != 0 {
    		panic("bad makemap")
    	}
    	m := make(map[string]string)
    	for i := 0; i < len(arg); i += 2 {
    		m[arg[i]] = arg[i+1]
    	}
    	return m
    }
    
    func stringer(s fmt.Stringer) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  3. src/html/template/exec_test.go

    func add(args ...int) int {
    	sum := 0
    	for _, x := range args {
    		sum += x
    	}
    	return sum
    }
    
    func echo(arg any) any {
    	return arg
    }
    
    func makemap(arg ...string) map[string]string {
    	if len(arg)%2 != 0 {
    		panic("bad makemap")
    	}
    	m := make(map[string]string)
    	for i := 0; i < len(arg); i += 2 {
    		m[arg[i]] = arg[i+1]
    	}
    	return m
    }
    
    func stringer(s fmt.Stringer) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/defaults_test.go

    					break
    				}
    				// if we don't already have a value, and contain structs, add an empty item so we can recurse
    				item := reflect.New(visit.value.Type().Elem()).Elem()
    				visit.value.Set(reflect.MakeMap(visit.value.Type()))
    				visit.value.SetMapIndex(reflect.New(visit.value.Type().Key()).Elem(), item)
    				toVisit = append(toVisit, testPath{path: visit.path + "[*]", value: item})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MapMakerInternalMap.java

        private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
          in.defaultReadObject();
          MapMaker mapMaker = readMapMaker(in);
          delegate = mapMaker.makeMap();
          readEntries(in);
        }
    
        private Object readResolve() {
          return delegate;
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
          in.defaultReadObject();
          MapMaker mapMaker = readMapMaker(in);
          delegate = mapMaker.makeMap();
          readEntries(in);
        }
    
        private Object readResolve() {
          return delegate;
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
Back to top