79756857

Date: 2025-09-05 14:00:55
Score: 1
Natty:
Report link

I think there is another simpler way to copy slice \

go
newSlice := oldSice[ : ]

the [ : ] means make a copy from the first lo last element.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alaa Ahmad M. Zakaria