Return Sequence instead of List #6

Merged
marvinelsen merged 8 commits from update-versions into main 2024-09-24 10:10:55 +00:00
Showing only changes of commit 3f8be7049b - Show all commits

View File

@ -48,9 +48,5 @@ internal class RegexCedictParser : CedictParser {
private fun toCedictDefinitions(definitions: String) = definitions private fun toCedictDefinitions(definitions: String) = definitions
.split(DEFINITION_SEPARATOR) .split(DEFINITION_SEPARATOR)
.map { .map { CedictDefinition(it.split(GLOSS_SEPARATOR).map(String::trim)) }
CedictDefinition(
glosses = it.split(GLOSS_SEPARATOR).map(String::trim)
)
}
} }