I am just starting with Kotlin. I want to create a range from 1
to n
where n
is excluded. I found out that Kotlin has ranges and I can use them as follows:
1..n
But this is an inclusive range which includes 1
and n
. How do I create exclusive ranges?