Skip to content

Is this actually a lazy left scan? #159

Closed
@drewolson

Description

@drewolson

scanrLazy :: forall a b. (a -> b -> b) -> b -> List a -> List b

The more I look at this, the more I am convinced that this is a left scan with the args to the function swapped. The following test seems to confirm this:

> fromFoldable $ scanrLazy (flip (-)) 10 (1..3)
(9 : 7 : 4 : Nil)

I believe I named this incorrectly when submitting the PR. Would love more input from folks who are more experienced.

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