Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sortedKeys1 (0.16 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              // there's a way around creating the separate sortedKeys array, and if we're allocating
              // one array of size n, we might as well allocate two -- to say nothing of the allocation
              // done in Arrays.sort.
              for (int i = 0; i < size; i++) {
                // We're careful to put only K instances in.
                if (i > 0 && comparator.compare((K) sortedKeys[i - 1], (K) sortedKeys[i]) == 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. src/go/doc/reader.go

    		if t.decl == nil || !visible {
    			delete(r.types, t.name)
    		}
    	}
    }
    
    // ----------------------------------------------------------------------------
    // Sorting
    
    func sortedKeys(m map[string]int) []string {
    	list := make([]string, len(m))
    	i := 0
    	for key := range m {
    		list[i] = key
    		i++
    	}
    	slices.Sort(list)
    	return list
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
Back to top