Skip to content

Add scanl/scanr/scanl1/scanr1 #90

@zliu41

Description

@zliu41

These functions seem useful:

scanl :: SNatI n => (b -> a -> b) -> b -> Vec n a -> Vec ('S n) b
scanr :: SNatI n => (a -> b -> b) -> b -> Vec n a -> Vec ('S n) b
scanl1 :: SNatI n => (a -> a -> a) -> Vec ('S n) a -> Vec ('S n) a
scanr1 :: SNatI n => (a -> a -> a) -> Vec ('S n) a -> Vec ('S n) a

Do you think they should be added?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions