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

Swift arrays are the only programming language arrays that have ever baffled me. I still have no idea how to manually reconstruct them given the array struct.


Swift arrays are interesting beasts because they need to support bridging into Obj-C, which makes them rather complicated. Look at ContiguousArray instead if you want the simple version that skips bridging support.


What part baffles you?




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

Search: