WingNews logo WingNews
top | new | best | ask | show | jobs | submit
GitHub [2]
top | item 7901394

Object Subscripting in Swift

2 points| andrei512 | 11 years ago |weheartswift.com

2 comments

order
[+] [-] andrei512|11 years ago|reply
Any ideas of applications for object subscripting?
[+] [-] chengdujin|11 years ago|reply
You could try add more feature as you like to the language, for example, I wrote an extension to support getting/setting substring with range as simple as testString[1...5] https://gist.github.com/chengdujin/a71c07f1a0432ab20423
powered by hn/api // news.ycombinator.com