【发布时间】:2015-09-05 16:07:37
【问题描述】:
当我进入插值部分时,我正在浏览 Ecto 文档,其中 Ecto 使用 Circumflex(^) 符号,就像这样。
def with_minimum(age, height_ft) do
from u in User,
where: u.age > ^age and u.height > ^(height_ft * 3.28)
end
让我想知道,它有什么作用? :-)
【问题讨论】:
标签: elixir