On Sun, 2021-09-05 at 03:51 -0700, Brian Candler wrote: > I'm not sure you're clear about what "monotonically increasing" > means. > > Are you saying that there are some cases where append() results in > the allocated size of a slice *shrinking*? If so, please > demonstrate.
I think he means that the cap of the appended slice is not a monotonically increasing function of the cap of the input slice. https://play.golang.org/p/RJbEkmFsPKM -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/dedd6e986c8019cc4480fa2b04f327fe632b20e0.camel%40kortschak.io.