31 ms·
Not only that, but the Golang example is full of errors. Parameter definitions don't have colons between name and type. The map for seen elements is declared as
by Chiron1991 3y ago
Not only that, but the Golang example is full of errors. Parameter definitions don't have colons between name and type. The map for seen elements is declared as a, but later referenced to as m. The append instruction references uniques, which is undefined. The return statement also references uniques.
- 0xjnml 3y agoThe Go code shown now is both syntactically valid and semantically correct: https://go.dev/play/p/GDki9v78jMM https://go.dev/play/p/GDki9v78jMM I can't check how it looked 15 hours ago. Makes me wonder if it was manually corrected and is thus a fake example now.
- blibble 3y agoah yes, so a typical example of generative AI output