Использовать функции стандартной библиотеки #11

Open
opened 2023-04-07 14:19:00 +03:00 by altavir · 0 comments

textsList.forEach { if (it.getName() == searchingName) return it }

Есть замечательная функция https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/find.html

https://git.sciprog.center/djvxnus/TextStatisticsProject/src/commit/52ee7bee83aeafbc2ff49c1373d714ce9db100d4/src/main/kotlin/Main.kt#L206 Есть замечательная функция https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/find.html
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: djvxnus/TextStatisticsProject#11
No description provided.