5
我正在瀏覽Ecto文檔,當我到達插值部分時,Ecto使用Circumflex(^)符號,就像這樣。Elixir中的Circumflex標誌/ Pin/Cap操作符(^)做了什麼?
def with_minimum(age, height_ft) do
from u in User,
where: u.age > ^age and u.height > ^(height_ft * 3.28)
end
讓我想知道它是做什麼的? :-)