- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for Clear (0.01 seconds)
-
doc/go_spec.html
n2 := copy(s, s[2:]) // n2 == 4, s is []int{2, 3, 4, 5, 4, 5} n3 := copy(b, "Hello, World!") // n3 == 5, b is []byte("Hello") </pre> <h3 id="Clear">Clear</h3> <p> The built-in function <code>clear</code> takes an argument of <a href="#Map_types">map</a>, <a href="#Slice_types">slice</a>, or <a href="#Type_parameter_declarations">type parameter</a> type, and deletes or zeroes out all elements
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 02 23:07:19 GMT 2025 - 286.5K bytes - Click Count (1)