JavaScript (Node.js), 33 bytes a=>n=>a.reduce((o,x,y)=>o+x*n**y) Try it online!
posted 3y ago by Shaggy
# JavaScript (Node.js), 33 bytes a=>n=>a.reduce((o,x,y)=>o+x*n**y) [Try it online!](https://tio.run/##FcRLCoAgEADQq7ScMRv6LvUi0ULUoggnsqJOb/gWbzOPifZcj6sK7HyaVTJKB6UNnd7d1gOwfOWHSnP5iiDEh8lyiLx72nmBGcaGalm0uS7XUz0hNDQgph8)