scala - Scala中函数之间的&符号是什么意思

标签 scala lift

我在 Scala 中遇到了一段奇怪的语法,有人可以向我解释它在作为参数传递给其他函数的函数之间应用时&符号是什么意思吗?

partialUpdate {
    SetHtml(currentAmountId,
    Text(leadingBid.toString)) &
    SetHtml(nextAmountId,
    Text(minimumBid.toString)) &
    SetHtml(winningCustomerId, winningCustomer) &
    SetValueAndFocus(amountId,"")
}

谢谢你向我解释这个。

最佳答案

&a method on JsCmd Lift framework连接两个命令。它不适用于普通的 Scala 字符串。

关于scala - Scala中函数之间的&符号是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9004148/

相关文章:

扩展集合时Scala返回类型

scala - 在 Play Framework 中使用可选的 GET 参数反向路由

scala - 将数据帧中的字符串值转换为时间戳并存储在 Hive 中

performance - 为什么电梯框架这么慢?

scala - sbt 中命令的更好语法可能吗?

ide - Eclipse Scala IDE 中的 Scala-Lift 项目错误

scala - 从外部访问抽象类型成员

scala - 将变量从 Scala 中的存在类型 TypeCast 转换为运行时类型

scala - lift站点地图中冒号、下划线和星号的含义是什么(条目 :_*)?

json - 使用lift-json序列化和反序列化案例类