RosettaCodeData/Task/Stack/Go/stack-3.go

2 lines
73 B
Go

popped, intStack = intStack[len(intStack)-1], intStack[:len(intStack)-1]