Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,489 for cons (0.05 sec)

  1. test/typeparam/issue50485.dir/a.go

    		})
    	}
    }
    
    type HList interface {
    	sealed()
    }
    
    // Header is constrains interface type,  enforce Head type of Cons is HT
    type Header[HT any] interface {
    	HList
    	Head() HT
    }
    
    // Cons means H :: T
    // zero value of Cons[H,T] is not allowed.
    // so Cons defined as interface type
    type Cons[H any, T HList] interface {
    	HList
    	Head() H
    	Tail() T
    }
    
    type Nil struct {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/functional/src/main/java/org/gradle/internal/collect/PersistentList.java

                    return true;
                }
                if (o == null || getClass() != o.getClass()) {
                    return false;
                }
                Cons<?> cons = (Cons<?>) o;
                return head.equals(cons.head) && tail.equals(cons.tail);
            }
    
            @Override
            public int hashCode() {
                return Objects.hash(head, tail);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 09:24:00 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue59740.go

    // original test case from issue
    
    type List[T any] func(T, func(T, List[T]) T) T
    
    func nil[T any](n T, _ List[T]) T        { return n }
    func cons[T any](h T, t List[T]) List[T] { return func(n T, f func(T, List[T]) T) T { return f(h, t) } }
    
    func nums[T any](t T) List[T] {
    	return cons(t, cons(t, nil /* ERROR "type func(n T, _ List[T]) T of nil[T] does not match inferred type List[T] for List[T]" */ [T]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 12:32:24 UTC 2023
    - 800 bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationRoleUsageIntegrationTest.groovy

            fails 'help'
            assertUsageLockedFailure('conf', type)
    
            where:
            createCode                     | type
            "consumable('conf')"           | 'Consumable'
            "consumable('conf') { }"       | 'Consumable'
            "resolvable('conf')"           | 'Resolvable'
            "resolvable('conf') { }"       | 'Resolvable'
            "dependencyScope('conf')"      | 'Dependency Scope'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 01:42:49 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  5. src/runtime/mgcpacer.go

    	// allocated (cons) per unit of scan work completed (mark) in a GC
    	// cycle, divided by the CPU time spent on each activity.
    	//
    	// Updated at the end of each GC cycle, in endCycle.
    	consMark float64
    
    	// lastConsMark is the computed cons/mark value for the previous 4 GC
    	// cycles. Note that this is *not* the last value of consMark, but the
    	// measured cons/mark value in endCycle.
    	lastConsMark [4]float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ProjectDependenciesIntegrationTest.groovy

                allprojects { configurations.create('conf') }
                task extraKey {
                    doLast {
                        dependencies.project(path: ":impl", configuration: ":conf", foo: "bar")
                    }
                }
                task missingPath {
                    doLast {
                        dependencies.project(paths: ":impl", configuration: ":conf")
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:37:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                String passwd = cliRequest.commandLine.getOptionValue(CLIManager.ENCRYPT_MASTER_PASSWORD);
    
                if (passwd == null) {
                    Console cons = System.console();
                    char[] password = (cons == null) ? null : cons.readPassword("Master password: ");
                    if (password != null) {
                        // Cipher uses Strings
                        passwd = String.copyValueOf(password);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 72.6K bytes
    - Viewed (0)
  8. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		"Filter workloads by namespace field")
    
    	return cmd
    }
    
    // Level is an enumeration of all supported log levels.
    type Level int
    
    const (
    	defaultLoggerName = "level"
    )
    
    const (
    	// OffLevel disables logging
    	OffLevel Level = iota
    	// CriticalLevel enables critical level logging
    	CriticalLevel
    	// ErrorLevel enables error level logging
    	ErrorLevel
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 22K bytes
    - Viewed (0)
  9. src/syscall/exec_linux.go

    				goto childerror
    			}
    		}
    
    		// The unshare system call in Linux doesn't unshare mount points
    		// mounted with --shared. Systemd mounts / with --shared. For a
    		// long discussion of the pros and cons of this see debian bug 739593.
    		// The Go model of unsharing is more like Plan 9, where you ask
    		// to unshare and the namespaces are unconditionally unshared.
    		// To make this model work we must further mark / as MS_PRIVATE.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. pilot/pkg/model/gateway.go

    			continue
    		}
    		if w.Port.Port == int(number) {
    			if legacyGatewaySelector {
    				// When we are using legacy gateway label selection, we only resolve to a single port
    				// This has pros and cons; we don't allow merging of routes when it would be desirable, but
    				// we also avoid accidentally merging routes when we didn't intend to. While neither option is great,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top