Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 378 for Slice3 (0.12 sec)

  1. src/slices/sort_benchmark_test.go

    				}
    				return cmp.Compare(a.n, b.n)
    			}
    			// Presort the slice so all benchmark iterations are identical.
    			slices.SortFunc(structs, cmpFunc)
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				// Sort the slice twice because slices.SortFunc modifies the slice in place.
    				slices.SortFunc(structs, func(a, b *myStruct) int { return cmpFunc(b, a) })
    				slices.SortFunc(structs, cmpFunc)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. tools/golangci-override.yaml

              - pkg: maps
                desc: "do not use maps; use istio.io/istio/pkg/maps instead"
              - pkg: golang.org/x/exp/slices
                desc: "do not use golang.org/x/exp/slices; use istio.io/istio/pkg/slices instead"
              - pkg: slices
                desc: "do not use slices; use istio.io/istio/pkg/slices instead"
          DenyOperatorAndIstioctl:
            files:
              # Tests can do anything
              - "!$test"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    		"fmt.Errorf":           true,
    		"fmt.Sprint":           true,
    		"fmt.Sprintf":          true,
    		"slices.Clip":          true,
    		"slices.Compact":       true,
    		"slices.CompactFunc":   true,
    		"slices.Delete":        true,
    		"slices.DeleteFunc":    true,
    		"slices.Grow":          true,
    		"slices.Insert":        true,
    		"slices.Replace":       true,
    		"sort.Reverse":         true,
    	}
    	Analyzer.Flags.Var(&funcs, "funcs",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Signature).String", Method, 5},
    		{"(*Signature).TypeParams", Method, 18},
    		{"(*Signature).Underlying", Method, 5},
    		{"(*Signature).Variadic", Method, 5},
    		{"(*Slice).Elem", Method, 5},
    		{"(*Slice).String", Method, 5},
    		{"(*Slice).Underlying", Method, 5},
    		{"(*StdSizes).Alignof", Method, 5},
    		{"(*StdSizes).Offsetsof", Method, 5},
    		{"(*StdSizes).Sizeof", Method, 5},
    		{"(*Struct).Field", Method, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/ztunnel/configdump/policies.go

    func (c *ConfigWriter) PrintPolicySummary(filter PolicyFilter) error {
    	w := c.tabwriter()
    	zDump := c.ztunnelDump
    
    	pols := slices.Filter(zDump.Policies, filter.Verify)
    	slices.SortFunc(pols, func(a, b *ZtunnelPolicy) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Name, b.Name)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. pkg/kube/krt/singleton_test.go

    	c.RunAndWait(stop)
    	cmt := clienttest.NewWriter[*corev1.ConfigMap](t, c)
    	ConfigMapNames := krt.NewSingleton[string](
    		func(ctx krt.HandlerContext) *string {
    			cms := krt.Fetch(ctx, ConfigMaps)
    			return ptr.Of(slices.Join(",", slices.Map(cms, func(c *corev1.ConfigMap) string {
    				return config.NamespacedName(c).String()
    			})...))
    		},
    	)
    	ConfigMapNames.AsCollection().Synced().WaitUntilSynced(stop)
    	tt := assert.NewTracker[string](t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/main/resources/org/gradle/reporting/report.js

        // Attach controls for column groups in tables
        var controls = $("div#controls");
        var groups = [];
        var slices = [];
        $("tr.control-groups").closest("table").find("tr").each(function() {
            var row = $(this);
            if (row.hasClass('control-groups')) {
                var currentCol = 0;
                slices = [];
                row.find("th").each(function(){
                    var e = $(this);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. pkg/controller/endpointslicemirroring/metrics/cache_test.go

    	spCacheEfficient.Set(pmKey80, EfficiencyInfo{Endpoints: 45, Slices: 1})
    	spCacheEfficient.Set(pmKey80443, EfficiencyInfo{Endpoints: 35, Slices: 1})
    
    	spCacheInefficient := NewEndpointPortCache()
    	spCacheInefficient.Set(pmKey80, EfficiencyInfo{Endpoints: 12, Slices: 5})
    	spCacheInefficient.Set(pmKey80443, EfficiencyInfo{Endpoints: 18, Slices: 8})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. api/go1.21.txt

    pkg slices, func Grow[$0 interface{ ~[]$1 }, $1 interface{}]($0, int) $0 #57433
    pkg slices, func Index[$0 interface{ ~[]$1 }, $1 comparable]($0, $1) int #57433
    pkg slices, func IndexFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1) bool) int #57433
    pkg slices, func Insert[$0 interface{ ~[]$1 }, $1 interface{}]($0, int, ...$1) $0 #57433
    pkg slices, func IsSorted[$0 interface{ ~[]$1 }, $1 cmp.Ordered]($0) bool #60091
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  10. src/crypto/tls/key_agreement.go

    func hashForServerKeyExchange(sigType uint8, hashFunc crypto.Hash, version uint16, slices ...[]byte) []byte {
    	if sigType == signatureEd25519 {
    		var signed []byte
    		for _, slice := range slices {
    			signed = append(signed, slice...)
    		}
    		return signed
    	}
    	if version >= VersionTLS12 {
    		h := hashFunc.New()
    		for _, slice := range slices {
    			h.Write(slice)
    		}
    		digest := h.Sum(nil)
    		return digest
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top