Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The author explicitly notes

> The Swift implementation was indeed written by ChatGPT, and it got it right first time, with just the prompt “Implement leftpad in Swift”. However: Swift is the only language I know where an implementation that does what I wanted it to do is that simple.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: