- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,781 for _Append (0.22 sec)
-
test/typeparam/append.go
type Recv <-chan int type sliceOf[E any] interface { ~[]E } func _Append[S sliceOf[T], T any](s S, t ...T) S { return append(s, t...) } func main() { recv := make(Recv) a := _Append([]Recv{recv}, recv) if len(a) != 2 || a[0] != recv || a[1] != recv { panic(a) } recv2 := make(chan<- int) a2 := _Append([]chan<- int{recv2}, recv2) if len(a2) != 2 || a2[0] != recv2 || a2[1] != recv2 { panic(a)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 597 bytes - Viewed (0) -
test/typeparam/slices.go
} return _Reduce(s[1:], s[0], _Min[Elem]) } // _Append adds values to the end of a slice, returning a new slice. // This is like the predeclared append function; it's an example // of how to write it using generics. We used to write code like // this before append was added to the language, but we had to write // a separate copy for each type. func _Append[T any](s []T, t ...T) []T { lens := len(s) tot := lens + len(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
_String _StringData // testing support _Assert _Trace ) var predeclaredFuncs = [...]struct { name string nargs int variadic bool kind exprKind }{ _Append: {"append", 1, true, expression}, _Cap: {"cap", 1, false, expression}, _Clear: {"clear", 1, false, statement}, _Close: {"close", 1, false, statement}, _Complex: {"complex", 2, false, expression},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
_String _StringData // testing support _Assert _Trace ) var predeclaredFuncs = [...]struct { name string nargs int variadic bool kind exprKind }{ _Append: {"append", 1, true, expression}, _Cap: {"cap", 1, false, expression}, _Clear: {"clear", 1, false, statement}, _Close: {"close", 1, false, statement}, _Complex: {"complex", 2, false, expression},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0) -
test/append.go
{"byte c", append([]byte{}, 0, 1, 2, 3), []byte{0, 1, 2, 3}}, {"byte d", append([]byte{0, 1, 2}), []byte{0, 1, 2}}, {"byte e", append([]byte{0, 1, 2}, 3), []byte{0, 1, 2, 3}}, {"byte f", append([]byte{0, 1, 2}, 3, 4, 5), []byte{0, 1, 2, 3, 4, 5}}, {"byte g", append([]byte{}, []byte{0}...), []byte{0}}, {"byte h", append([]byte{}, []byte{0, 1, 2, 3}...), []byte{0, 1, 2, 3}},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 06 04:28:23 UTC 2018 - 9.1K bytes - Viewed (0) -
internal/ioutil/append-file_windows.go
"os" "github.com/minio/minio/internal/lock" ) // AppendFile - appends the file "src" to the file "dst" func AppendFile(dst string, src string, osync bool) error { appendFile, err := lock.Open(dst, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666) if err != nil { return err } defer appendFile.Close() srcFile, err := lock.Open(src, os.O_RDONLY, 0o666) if err != nil { return err } defer srcFile.Close()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 1.2K bytes - Viewed (0) -
internal/ioutil/append-file_nix.go
package ioutil import ( "io" "os" ) // AppendFile - appends the file "src" to the file "dst" func AppendFile(dst string, src string, osync bool) error { flags := os.O_WRONLY | os.O_APPEND | os.O_CREATE if osync { flags |= os.O_SYNC } appendFile, err := os.OpenFile(dst, flags, 0o666) if err != nil { return err } defer appendFile.Close() srcFile, err := os.Open(src)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 1.3K bytes - Viewed (0) -
maven-model-builder/src/test/resources/poms/inheritance/no-append-urls3-expected.xml
<artifactId>inheritance</artifactId> <version>11-SNAPSHOT</version> <name>Model urls inheritance test child</name> <scm child.scm.connection.inherit.append.path="true" child.scm.developerConnection.inherit.append.path="true" child.scm.url.inherit.append.path="true"> <connection>scm:my-scm:http://domain.org/base</connection> <developerConnection>scm:my-scm:https://domain.org/base/</developerConnection>
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Nov 07 15:16:39 UTC 2019 - 1.9K bytes - Viewed (0) -
maven-model-builder/src/test/resources/poms/inheritance/no-append-urls-parent.xml
</modules> <!-- 5 urls in the pom to configure for not adding path --> <url>http://www.apache.org/path/to/parent/</url> <scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" child.scm.url.inherit.append.path="false"> <connection>scm:my-scm:http://domain.org/base</connection> <developerConnection>scm:my-scm:https://domain.org/base/</developerConnection>
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Nov 07 15:16:39 UTC 2019 - 2.1K bytes - Viewed (0) -
maven-model-builder/src/test/resources/poms/inheritance/no-append-urls3-child.xml
<name>Model urls inheritance test child</name> <scm child.scm.connection.inherit.append.path="true" child.scm.developerConnection.inherit.append.path="true" child.scm.url.inherit.append.path="true" /> <distributionManagement> <site child.site.url.inherit.append.path="true" /> </distributionManagement>
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Nov 07 15:16:39 UTC 2019 - 1.6K bytes - Viewed (0)