Skip to content

Change the argument order of vec::foldl #1969

Closed
@brson

Description

@brson

This function has it's arguments in the haskelly order that is analogous to the direction that is being folded - initial value, then the vector to fold. While this is kind of nice, it's contrary to our standard argument order of taking the vector being operated on first, and different from the order used by the iter library. Also the function that is taken as the third argument should probably have it's arguments switched. Essentially, I think foldl and foldr should have the same signature, in vec, iter and std::list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions