我有一个单词表
dempron {hic, haec, hoc, huius, huic, hunc, hanc, hac, hi, hae, horum, harum, his, hos, has}
我有一个xml-kind-of text
<p>Hoc templum magnum est.</p>
<p>Templa Romanorum magna sunt.</p>
<p>Claudia haec templa in foro videt.</p>
我想搜索wordlist“dempron”并将包含wordlist中单词的句子复制到名为 results 的缓冲区。
答案 0 :(得分:0)
我同意Simon Fromme,但希望这会让你开始。如果您有任何问题,请告诉我们!
# 1.
cset =
Activity.changeset(
%Activity{},
%{details: "Played in the snow", child_id: child_id}
)
# 2.
cset = Ecto.Changeset.put_change(cset, :relevant_date, ~D[2016-12-31])
# 3. This probably is something you currently have implemented
# in your `Activity.changeset`, most likely as second setep
# after `Ecto.cast/3`.
cset = Ecto.Changeset.validate_required(cset, [:relevant_date])