Return Sequence instead of List #6
@ -48,9 +48,5 @@ internal class RegexCedictParser : CedictParser {
|
||||
|
||||
private fun toCedictDefinitions(definitions: String) = definitions
|
||||
.split(DEFINITION_SEPARATOR)
|
||||
.map {
|
||||
CedictDefinition(
|
||||
glosses = it.split(GLOSS_SEPARATOR).map(String::trim)
|
||||
)
|
||||
}
|
||||
.map { CedictDefinition(it.split(GLOSS_SEPARATOR).map(String::trim)) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user