$Search: copy a slice

One option is to allocate a new slice of the same length as original slice and use copy():

https://codeeval.dev/gist/f3a8ca5000cc9bd46b77d9f2c0811eae

Another option is to append() original slice to an empty slice:

https://codeeval.dev/gist/00a767c0bca43e59b6aa190771858224

Both versions are equally efficient.