Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Go
/
Slices
What independence does slices.Clone provide for a [][]byte value?
from Slices
Go 1.27
intermediate
1 min
What independence does slices.Clone provide for a [][]byte value?
It clones the outer slice but the inner byte slices still share their backing arrays.
It recursively clones every byte in every inner slice.
It returns the same outer slice when capacity is sufficient.
It cannot clone a slice whose elements are slices.
Check
Ask AI about this kata
Report an error
next kata
Which statement about var items []string and items := []string{} is correct?
Quiz
A new version is available
Reload