https://kotlinlang.org logo
#announcements
Title
# announcements
d

damian

07/25/2017, 5:01 PM
Ideally there should be an intrinsic for
until
😞
👍 2
e

elect

07/25/2017, 8:30 PM
what is it an intrisic exactly?
d

damian

07/25/2017, 8:39 PM
It's a special case in the compiler that implements a particular construct differently than can be done in the language itself (if it can be done at all). In the case of using
for (i in n..m)
, for example, the compiler knows that it can output a "primitive" loop instead of doing the whole `IntRange`/`Iterator` dance.
e

elect

07/26/2017, 7:00 AM
thanks!
2 Views