Telegram Group & Telegram Channel
Любая попытка получить доступ к массиву, выходящему за его границы, приведет к крашу.

Хотя для предотвращения таких сбоев мы часто пишем if index < array.count { array[index] }, такой подход выглядит громоздким. Хотя и рабочим.

👍 Замечательно то, что это условие можно заключить в subscript, который будет работать с любой коллекцией.
👍19🔥7🤔7



tg-me.com/iosdev/207
Create:
Last Update:

Любая попытка получить доступ к массиву, выходящему за его границы, приведет к крашу.

Хотя для предотвращения таких сбоев мы часто пишем if index < array.count { array[index] }, такой подход выглядит громоздким. Хотя и рабочим.

👍 Замечательно то, что это условие можно заключить в subscript, который будет работать с любой коллекцией.

BY iOS Dev




Share with your friend now:
tg-me.com/iosdev/207

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.

Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.telegram from us


Telegram iOS Dev
FROM USA