vavr-io / vavr

vʌvr (formerly called Javaslang) is a non-commercial, non-profit object-functional library that runs with Java 8+. It aims to reduce the lines of code and increase code quality.
https://vavr.io
Other
5.74k stars 637 forks source link

(Collection) factory methods #2125

Open danieldietrich opened 7 years ago

danieldietrich commented 7 years ago

We have too many methods called of. Because most collections are also functions, I want to simplify that.

We need to take a look if ofXyz(Xyz) or fromXyz(Xyz) makes more sense, e.g.

Also we will have distinguished factory method names that will not build instances directly from the given method parameters (like of(T...) does for example).

danieldietrich commented 4 years ago

On help let's discuss it first.

danieldietrich commented 4 years ago

We will revisit this issue for version 2.0.0 because Iterable and Iterator will have a different meaning there in the type hierarchy. More specifically, Iterator will not extend Iterable anymore!