Skip to content

Stream#foldRight1 naming #242

@jbgi

Description

@jbgi

Stream foldRight1 methods at https://github.com/functionaljava/functionaljava/blob/master/core/src/main/java/fj/data/Stream.java#L146
are named as if the stream must be non-empty but this is not the case.
I think we should either use A => B as initial value (to conform with the name, but unsafe) . Or rename to something like foldRight<Eager|Strict|?>. Or have both...
WDYT ?

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