Return Sequence instead of List #6
@ -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)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user