jbnizet10/10/2019, 6:37 AM
where d1 and d2 are instances of java.time.LocalDate. I can do that by defining an extension function
for (date in d1..d2)
. But is there a way to easily have that extension function imported in IntelliJ? Except for manually typing the import statement
operator fun ClosedRange<LocalDate>.iterator()
at the top of the file, I haven’t found a way, which makes it quite unintuitive to use such a for loop. Is there a better solution that I’m missing?
egorand10/10/2019, 11:29 PM
jbnizet10/11/2019, 10:14 AM