Collection functions?


#1

i found some standard functions (select, map, fold), but not much more is this going to be improved? i am asking because i started to solve some euler problems (http://projecteuler.net/) with kotlin (to take a look at kotlin), and i stumble upon everything that is missing compared to scala, haskell or clojure my first two missing features: strings are not treated as lists of characters, meaning there is no support for all the nice collection methods no "permutations" or "combinations" iterator

also i noticed that everything seems to be based on javas standard arraylist - didn’t you want to implement your own collections at some point?


#2

Yes, this is going to be improved, and contributions are welcome.

About our own collections: we will implement them if there’s any real need, will reuse existing implementations where possible.

BTW, you may be interested to have a look here: https://github.com/kotlin-projects/kotlin-euler


#3

nice^^


#4

strings are not treated as lists of characters, meaning there is no support for all the nice collection methods no "permutations" or "combinations" iterator

Strings not being treated as lists of characters got fixed in KT-1859 The methods I suggested to be added back then to class String where all accepted (of course, they were inspired by the String iterators in Smalltalk ...): https://github.com/JetBrains/kotlin/pull/158 So I guess people will be happy to deal with your pull request for permutations and combinations :-)