Skip to content

accumulate: can/should it test for mapping to a different type? #629

@petertseng

Description

@petertseng

Traditionally map would be (a -> b) -> [a] -> [b], but here we only have (a -> a) -> [a] -> [a] (and in fact we only have i32 anyway). Can/should it test for mapping to a different type?

Note that this would subsume #628 ; you'd not be able to mutate the input if it were a different type, so this could make both proposed changes at once

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR addressingA PR exists addressing this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions