$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #298

What goes in the blank?

// Go: grow the slice by one element
xs = ____(xs, 4)

Answer: append (also accepted: append)

append returns the (possibly reallocated) slice, which is why the result is assigned back to xs.
Play Problem Solving ▸