Skip to content

Proposal: andThen for Polynomial? #1337

@windymelt

Description

@windymelt

Current Spire has compose for Polynomial[A]:

(f.compose(g).compose(h))(x) // => process h, then g, then f; that's result

But it has no andThen method for Polynomial.

In business context, People prefer more intuitive syntax ---- "Discount, then apply another discount, then add tax".

So implementing andThen alike function is reasonable choice for devs including newcomers.

Please tell me your opinions!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions