Re: [go-nuts] Powersets and append() confusion

2016-06-18 Thread Sonia Keys
See also full slice expressions Bug fix using full slice expressions: https://play.golang.org/p/25wqGsZZ8O On Saturday, June 18, 2016 at 2:40:54 PM UTC-4, Oliver Schmid wrote: > > Thanks for the help Jakob. Now the docs about *append()* editing in

Re: [go-nuts] Powersets and append() confusion

2016-06-18 Thread Oliver Schmid
Thanks for the help Jakob. Now the docs about *append()* editing in place make more sense to me. For those interested someone also sent me a fix: https://play.golang.org/p/dbYTO2h8Sw On Saturday, June 18, 2016 at 10:50:10 AM UTC-7, Jakob Borg wrote: > > 2016-06-18 19:16 GMT+02:00 Oliver Schmid

Re: [go-nuts] Powersets and append() confusion

2016-06-18 Thread Jakob Borg
2016-06-18 19:16 GMT+02:00 Oliver Schmid : > Hi. I made a string only version of the powerset function on Rosetta Code > and ran into a bug where a slice input to append() [one, two, three, four] > seems to be replaced by [one, two, three, five]. What. Note that append() doesn't necessarily return