Join Slack
Communities
Powered by
Hello, is there an equivalent of our beloved kotli...
# ios
g
galex
05/01/2019, 4:29 AM
Hello, is there an equivalent of our beloved kotlin let function in Swift?
d
darkmoon_uk
05/01/2019, 9:03 AM
Last time I looked, there wasn't; but it's also quite straightforward to implement.
darkmoon_uk
05/01/2019, 9:04 AM
In the same way as in Kotlin, by extending
Any
.
g
galex
05/02/2019, 10:44 AM
Yup you’re right it can be easily copied
Open in Slack
Previous
Next