Post History
Scala, 18 bytes x=>_.:\(.0)(_+_*x) Try it online! Not too complicated. Takes the list of coefficients and folds from the right, multiplying the accumulator by x each time and adding the nex...
Answer
#1: Initial revision
# Scala, 18 bytes ``` x=>_.:\(.0)(_+_*x) ``` [Try it online!](https://scastie.scala-lang.org/0M6Dt2fQRiasqFDANWjMqQ) Not too complicated. Takes the list of coefficients and folds from the right, multiplying the accumulator by x each time and adding the next coefficient. `reduceRight` would've worked instead of `:\(0)`, but it's golfier, and I haven't used `/:` or `:\` in a while.