It's a prepend list which is more idiomatic for fu...
# getting-started
s
It's a prepend list which is more idiomatic for functional programming, e.g. separating head and tail in recursive functions: https://alvinalexander.com/scala/how-to-use-lists-nil-cons-scala-match-case-expressions
has nice pattern match support too
k
I am aware what it is, and it's really easy to implement yourself
I'm looking if maybe one of the functional libraries has one
no `Cons`/`Nil` matching tho, i think
s
yeh, I noticed there were several instances of cons list implementations in the Kotlin source itself, https://github.com/JetBrains/kotlin/search?l=Kotlin&q=cons&type=&utf8=%E2%9C%93 Would be nice if there was native support