github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/op/delay/replace/api.go (about)

     1  // Package replace provides builders that specifies on value replacing
     2  package replace
     3  
     4  // By creates replacer a value by the specified one
     5  func By[T any](r T) func(t T) T {
     6  	return func(t T) T { return r }
     7  }