Timeline for Can somebody give a snippet of "append if not exists" method in swift array?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 11 at 10:21 | comment | added | Medhi | Useful to track order of seen posts! Thanks | |
Mar 21, 2019 at 6:29 | comment | added | Chen Li Yong | The difference between this approach and the accepted answer approach is that the accepted answer approach preserves the existing object index, while this approach uses the new object index instead. But my question is specifically about appending data. In my case, it's better if we preserve the existing object index instead. But thanks for your input. | |
Mar 15, 2019 at 15:37 | history | answered | Rand | CC BY-SA 4.0 |