- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,638 for cons (0.09 sec)
-
test/typeparam/cons.go
Match(casenil Function[Nil[a], any], casecons Function[Cons[a], any]) any } type Nil[a any] struct { } func (xs Nil[a]) Match(casenil Function[Nil[a], any], casecons Function[Cons[a], any]) any { return casenil.Apply(xs) } type Cons[a any] struct { Head a Tail List[a] } func (xs Cons[a]) Match(casenil Function[Nil[a], any], casecons Function[Cons[a], any]) any { return casecons.Apply(xs) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 21 23:41:49 UTC 2022 - 2K bytes - Viewed (0) -
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) -
platforms/core-runtime/functional/src/main/java/org/gradle/internal/collect/PersistentList.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 09:24:00 UTC 2024 - 4.4K bytes - Viewed (0) -
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) -
src/cmd/vendor/golang.org/x/term/term_plan9.go
"runtime" "golang.org/x/sys/plan9" ) type state struct{} func isTerminal(fd int) bool { path, err := plan9.Fd2path(fd) if err != nil { return false } return path == "/dev/cons" || path == "/mnt/term/dev/cons" } func makeRaw(fd int) (*State, error) { return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) } func getState(fd int) (*State, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 15 19:02:39 UTC 2021 - 1.1K bytes - Viewed (0) -
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) -
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) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ProjectDependenciesIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 05 02:37:37 UTC 2024 - 4.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sat Nov 13 15:13:49 UTC 2021 - 11K bytes - Viewed (0) -
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)