Looking at Kotlin documentation, it says that things like Set or List are interfaces. So why can I call the constructor like "val list = List<Int>(3 , {it})" and have it work, when you can't instantiate interfaces?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/Kotlin

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • GitHub repo kotlin

    The Kotlin Programming Language.

    For number 2, check out AbstractList.kt, and go up to it's parent library to find most of what you're looking for. It's probably not as neatly-packed as Java classes are, but nothing's stopping you from looking at Kotlin's internal implementation.

  • GitHub repo KEEP

    Kotlin Evolution and Enhancement Process

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts