- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of about 10,000 for a$ (0.06 sec)
-
test/typeparam/absdiffimp2.dir/a.go
// between a and b, where a and b are of an ordered type. func OrderedAbsDifference[T orderedNumeric](a, b T) T { return absDifference(orderedAbs[T]{a}, orderedAbs[T]{b}) } // ComplexAbsDifference returns the absolute value of the difference // between a and b, where a and b are of a complex type. func ComplexAbsDifference[T Complex](a, b T) T { return absDifference(complexAbs[T]{a}, complexAbs[T]{b})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 09 21:26:42 UTC 2022 - 2.8K bytes - Viewed (0) -
test/typeparam/absdiffimp.dir/a.go
// } // // // complexAbs is a helper type that defines an Abs method for // // complex types. // type complexAbs[T Complex] T // // func (a complexAbs[T]) Abs() complexAbs[T] { // r := float64(real(a)) // i := float64(imag(a)) // d := math.Sqrt(r*r + i*i) // return complexAbs[T](complex(d, 0)) // } // // // OrderedAbsDifference returns the absolute value of the difference
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 00:11:24 UTC 2021 - 2.1K bytes - Viewed (0) -
test/fixedbugs/issue29919.dir/a.go
println(s) } if strings.Contains(s, "autogenerated") { panic("autogenerated code in traceback") } if !strings.Contains(s, "a.go:15") { panic("missing a.go:15") } if !strings.Contains(s, "a.go:19") { panic("missing a.go:19") } if !strings.Contains(s, "a.init") { panic("missing a.init") } // Check the CallersFrames results. if debug { iter := runtime.CallersFrames(pcs[:n]) for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 17:50:47 UTC 2022 - 1.6K bytes - Viewed (0) -
test/typeparam/issue51367.dir/a.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type A[T any] struct{} func (_ A[T]) Method() {} func DoSomething[P any]() { a := A[*byte]{} a.Method()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 28 15:58:07 UTC 2022 - 281 bytes - Viewed (0) -
test/typeparam/issue47892b.dir/a.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type T struct{ p *int64 } type i struct{} func G() *T { return &T{nil} } func (j i) F(a, b *T) *T { n := *a.p + *b.p return &T{&n} } func (j i) G() *T { return &T{} } type I[Idx any] interface { G() Idx F(a, b Idx) Idx } func Gen() I[*T] { return i{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Aug 29 14:10:21 UTC 2021 - 436 bytes - Viewed (0) -
test/fixedbugs/issue49094.dir/a.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type A struct{} func (a *A) f() bool { return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 22 00:57:18 UTC 2021 - 226 bytes - Viewed (0) -
tests/test_modules_same_name_body/app/a.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 160 bytes - Viewed (0) -
test/typeparam/issue48185b.dir/a.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a import ( "reflect" "sync" ) type addressableValue struct{ reflect.Value } type arshalers[Options, Coder any] struct { fncVals []typedArshaler[Options, Coder] fncCache sync.Map // map[reflect.Type]unmarshaler } type typedArshaler[Options, Coder any] struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 07 20:37:05 UTC 2021 - 1K bytes - Viewed (0) -
test/typeparam/issue49241.dir/a.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type T[P any] struct { x P } type U struct { a,b int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 02 18:31:53 UTC 2021 - 229 bytes - Viewed (0) -
test/typeparam/issue48962.dir/a.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type ( A[P any] [10]P S[P any] struct{ f P } P[P any] *P M[K comparable, V any] map[K]V
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 24 21:27:28 UTC 2022 - 307 bytes - Viewed (0)