viorgu
12/03/2015, 4:51 PMjasoet-gdp
12/03/2015, 10:16 PMjasoet-gdp
12/03/2015, 10:17 PMkirillrakhman
12/03/2015, 10:21 PMjasoet-gdp
12/03/2015, 10:25 PMjasoet-gdp
12/03/2015, 10:25 PMlistOf
will product ImmutableList in Kotlinjasoet-gdp
12/03/2015, 10:25 PMmikehearn
12/04/2015, 11:39 AMvoddan
12/04/2015, 2:18 PMvoddan
12/09/2015, 12:45 PMvoddan
12/09/2015, 12:45 PMilya.gorbunov
12/09/2015, 3:17 PMIterable
and Sequence
to determine at compile time whether operations should be performed in eager or lazy fashion: most transforming operations on Iterable
are eager, while on Sequence
they are lazy.
Having Sequence
inheriting from Iterable
might make overload resolution tricky and unpredictable.kirillrakhman
12/09/2015, 4:23 PMviorgu
12/09/2015, 4:42 PMzip
don't accept `Sequence`s, is this a temporary oversight or a deliberate design decision?kirillrakhman
12/09/2015, 4:42 PMviorgu
12/09/2015, 4:46 PMkirillrakhman
12/09/2015, 4:49 PMkirillrakhman
12/09/2015, 4:49 PMilya.gorbunov
12/09/2015, 4:51 PMIterable
to a Sequence
and vice-versa is performed with lightweight wrappers Iterable.asSequence
and Sequence.asIterable
kirillrakhman
12/09/2015, 4:54 PMkirillrakhman
12/09/2015, 4:54 PMkirillrakhman
12/09/2015, 4:54 PMilya.gorbunov
12/09/2015, 4:55 PMvoddan
12/09/2015, 6:55 PMIterable
vs Sequence
- does it really make sense to have methods like all(predicate): Boolean
duplicated? https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/all.htmlvoddan
12/09/2015, 6:55 PMIterable
and Sequence
should not be so incompatibleyole
12/09/2015, 6:57 PMvoddan
12/09/2015, 6:58 PMvoddan
12/09/2015, 6:58 PMyole
12/09/2015, 6:58 PMvoddan
12/09/2015, 7:00 PMsth.asSequence().pa.pa.r.a.m.asIterable().all()