I've encountered a strange piece of syntax in Scala, could someone explain it to me what does ampersand mean when aplied bettween functions that are passed as argument to other function?
partialUpdate {
SetHtml(currentAmountId,
Text(leadingBid.toString)) &
SetHtml(nextAmountId,
Text(minimumBid.toString)) &
SetHtml(winningCustomerId, winningCustomer) &
SetValueAndFocus(amountId,"")
}
Thank you for explaining this one to me.
&
is a method on JsCmd
in the Lift framework that concatenates two commands. It won't work on normal Scala strings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With