WWZTP44OMUGMTSNEG4YI6H2YTHAC4DLQMG6JHKXSVUKIWBDC7IGAC
new_acc = if last == "" do
[]
else
[last]
end
{[{:sentence, first_sentence}] ++ other_sentences, new_acc}
end
a, acc -> {[a], acc}
other_sentences =
splitted
|> Enum.drop(1)
|> Enum.drop(-1)
|> Enum.map(fn s -> {:sentence, s} end)
new_acc =
if last == "" do
[]
else
[last]
end
{[{:sentence, first_sentence}] ++ other_sentences, new_acc}
end
a, acc ->
{[a], acc}