Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does ampersand between functions mean in Scala

Tags:

scala

lift

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.

like image 579
Jarek Avatar asked Jan 25 '12 14:01

Jarek


1 Answers

& is a method on JsCmd in the Lift framework that concatenates two commands. It won't work on normal Scala strings.

like image 73
Travis Brown Avatar answered Sep 23 '22 12:09

Travis Brown