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

bloodshura

09/13/2018, 11:45 PM
IDEA's Kotlin plugin 1.2.70 introduced a new default inspection to convert chains of collection functions into sequences... But, for example, this code:
Copy code
list
    .distinct()
    .chunked(20)
Why is the inspection warning to convert it? Would it make any difference wrapping these 2 calls into a Sequence? Wouldn't
distinct()
be called for all elements anyway?