All Questions
1 question
10
votes
5
answers
963
views
Can a pure-functional solution to this problem be as clean as the imperative?
I have an exercise in Python as follows:
a polynomial is given as a tuple of coefficients such that the powers are determined by the indexes, e.g.: (9,7,5) means 9 + 7*x + 5*x^2
write a function to ...