- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,140 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/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/sync/cond.go
// a call to [Cond.Broadcast] or [Cond.Signal] “synchronizes before” any Wait call // that it unblocks. // // For many simple use cases, users will be better off using channels than a // Cond (Broadcast corresponds to closing a channel, and Signal corresponds to // sending on a channel). // // For more on replacements for [sync.Cond], see [Roberto Clapis's series on
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 4.1K bytes - Viewed (0) -
apache-maven/src/assembly/maven/bin/m2.conf
main is org.apache.maven.cli.MavenCli from plexus.core set maven.conf default ${maven.home}/conf [plexus.core] load ${maven.conf}/logging optionally ${maven.home}/lib/ext/redisson/*.jar optionally ${maven.home}/lib/ext/hazelcast/*.jar optionally ${user.home}/.m2/ext/*.jar optionally ${maven.home}/lib/ext/*.jar load ${maven.home}/lib/maven-*.jar
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Oct 18 18:06:57 UTC 2023 - 396 bytes - Viewed (0) -
buildscripts/upgrade-tests/nginx.conf
access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; # include /etc/nginx/conf.d/*.conf; upstream minio { server minio1:9000; server minio2:9000; server minio3:9000; server minio4:9000; } # main minio server { listen 9000;
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Nov 21 18:41:30 UTC 2021 - 1.7K bytes - Viewed (0) -
.github/workflows/mint/nginx.conf
'"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; keepalive_timeout 65; # include /etc/nginx/conf.d/*.conf; upstream minio { server minio1:9000 max_fails=1 fail_timeout=10s; server minio2:9000 max_fails=1 fail_timeout=10s; server minio3:9000 max_fails=1 fail_timeout=10s;
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 16:52:29 UTC 2024 - 3.1K bytes - Viewed (0)