+list + / += Iterable

+CLI app started
This commit is contained in:
sergeych committed 2025-06-02 07:39:31 +04:00
1 parent 939e391a20
commit 6ef94fff65
14 files changed
+271 -82

No files matched your search

+7 -1
View File
@@ -15,7 +15,13 @@ Just remember at this stage typed declarations are not yet supported.
Having `Iterable` in base classes allows to use it in for loop. Also, each `Iterable` has some utility functions available:
## toList()
## Abstract methods
fun iterator(): Iterator
## Instance methods
### toList()
Creates a list by iterating to the end. So, the Iterator should be finite to be used with it.