name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name |
slug |
sourceRef |
category |
subCategory |
playUrl |
variantHelpers |
similarHelpers |
position |
signatures |
| Replace |
replace |
slice.go#L684 |
core |
slice |
https://go.dev/play/p/XfPzmf9gql6 |
|
| core#string#replace |
| core#string#replaceall |
| core#slice#fill |
| core#slice#splice |
| core#slice#slice |
|
0 |
| func Replace[T comparable, Slice ~[]T](collection Slice, old T, nEw T, n int) Slice |
|
Returns a copy of the slice with the first n non-overlapping instances of old replaced by new.