Post History
Ruby, 29 bytes ->l,x{a,*b=l;a ?a+x*f[b,x]:0} Try it online
Answer
#3: Post edited
# [Ruby](https://www.ruby-lang.org/), 32 bytes- ```ruby
->l,x{l.reverse.reduce{_1+_2*x}}- ```
**[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhY3FXTtcnQqqnP0ilLLUouKU4F0SmlyanW8oVaFdrxRbS1UXUWBQlp0tKGeQayOgqGFUayCMlCngiEXTFhHwQgsZwKVsYTIGOmZwmQM9EyhcsZ6pqj6dIBCQMIEYjpcnZGJnpEpxP4FCyA0AA)**
- # [Ruby](https://www.ruby-lang.org/), 29 bytes
- ```ruby
- ->l,x{a,*b=l;a ?a+x*f[b,x]:0}
- ```
- **[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhZ7de1ydCqqE3W0kmxzrBMV7BO1K7TSopN0KmKtDGoham5WFCikRUcb6hnE6igYWhjFKigr6NopGHLBhHUUjMByJlAZS4iMkZ4pTMZAzxQqZ6xniqpPBygEJEwgpsPVGZnoGZlC7F-wAEIDAA)**
#2: Post edited
[Ruby](https://www.ruby-lang.org/), 32 bytes- ```ruby
- ->l,x{l.reverse.reduce{_1+_2*x}}
- ```
- **[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhY3FXTtcnQqqnP0ilLLUouKU4F0SmlyanW8oVaFdrxRbS1UXUWBQlp0tKGeQayOgqGFUayCMlCngiEXTFhHwQgsZwKVsYTIGOmZwmQM9EyhcsZ6pqj6dIBCQMIEYjpcnZGJnpEpxP4FCyA0AA)**
- # [Ruby](https://www.ruby-lang.org/), 32 bytes
- ```ruby
- ->l,x{l.reverse.reduce{_1+_2*x}}
- ```
- **[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhY3FXTtcnQqqnP0ilLLUouKU4F0SmlyanW8oVaFdrxRbS1UXUWBQlp0tKGeQayOgqGFUayCMlCngiEXTFhHwQgsZwKVsYTIGOmZwmQM9EyhcsZ6pqj6dIBCQMIEYjpcnZGJnpEpxP4FCyA0AA)**
#1: Initial revision
[Ruby](https://www.ruby-lang.org/), 32 bytes ```ruby ->l,x{l.reverse.reduce{_1+_2*x}} ``` **[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhY3FXTtcnQqqnP0ilLLUouKU4F0SmlyanW8oVaFdrxRbS1UXUWBQlp0tKGeQayOgqGFUayCMlCngiEXTFhHwQgsZwKVsYTIGOmZwmQM9EyhcsZ6pqj6dIBCQMIEYjpcnZGJnpEpxP4FCyA0AA)**