- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for 1234567 (1.95 sec)
-
doc/go1.17_spec.html
</p> <pre class="grammar"> copy(dst, src []T) int copy(dst []byte, src string) int </pre> <p> Examples: </p> <pre> var a = [...]int{0, 1, 2, 3, 4, 5, 6, 7} var s = make([]int, 6) var b = make([]byte, 5) n1 := copy(s, a[0:]) // n1 == 6, s == []int{0, 1, 2, 3, 4, 5} n2 := copy(s, s[2:]) // n2 == 4, s == []int{2, 3, 4, 5, 4, 5}
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 10 18:25:45 UTC 2024 - 211.6K bytes - Viewed (0)