Commit Graph

14 Commits

Author SHA1 Message Date
Denis Zharkov 48ca1bd453 Assignment operations test fix:
type infered for these vals are MutableIterator, but there is no plus (returning MutableIterator)
nor plusAssign operator for them, so I casted them explicitly to Iterator
2014-07-28 22:00:15 +04:00
Alexander Udalov 11cc7f46f4 Remove "Iterator.iterator()" intrinsic, add stdlib function 2014-03-02 19:55:24 +04:00
Alexey Sedunov 9839c2b0b6 Stdlib: Add iteration over unary function, implement iterator zip and skip 2013-11-20 01:44:13 +04:00
develar e786e62fd7 JS backend: fixed variable capturing in extension functions.
Fixed ClosureTest.testWrappedVariableInExtensionFun IteratorsTest.foldReducesTheFirstNElements and IteratorsTest.takeExtractsTheFirstNElements. All tests passed.

(cherry picked from commit f8f1895)
2013-08-09 14:29:55 +04:00
develar 4e07c60541 JS backend: fixed AbstractCollection#equals.
Disabled test IteratorsTest::takeExtractsTheFirstNElements
2013-08-09 14:29:53 +04:00
develar 12d19dd9d8 JS backend: added wraping to object the local vars which captured in closure.
Moved local functions and function literals to class/namespace definition.

(cherry picked from commit 36c954b)
2013-07-18 16:04:42 +04:00
Evgeny Gerashchenko dd4b508213 Adapted usage of failsWith(). 2013-01-29 22:55:10 +04:00
Svetlana Isakova ca6d7e643e use kotlin Iterable/Iterator
instead of java Iterable/Iterator
in Kotlin code in library
2012-08-16 18:39:23 +04:00
James Strachan bb8dc49692 added more iterator based tests to the JS compilation; exposes some issue with enums... 2012-07-04 09:19:03 +01:00
James Strachan f022b61794 #KT-39 Fixed with eager and lazy implementations 2012-04-03 15:36:34 +01:00
James Strachan 153b668d3e #KT-1391 Fixed 2012-04-03 10:40:21 +01:00
James Strachan 1d342978d0 #KT-1675 Fixed, renaming join() -> makeString() and adding an appendString() which reduces the possible number of appendables being created 2012-04-02 20:01:24 +01:00
James Strachan fbd1279cc9 removed Iterator.toString() as it changes the iterator state, the default is fine and folks should be explicit about iterating over an iterator. Also disabled the default limit on the iterator on join(); if folks want to limit the join they should be explicit 2012-03-30 10:24:27 +01:00
Franck Rasolo ca4f552245 KT-1653 Implemented map, flatMap, take, takeWhile, join, and toString for iterators, #KT-1653 Fixed 2012-03-28 15:55:27 +01:00