Skip to content

Think about lazy loop method #647

@sobolevn

Description

@sobolevn

Imagine that you have a list of 3 elements. And you are going to use Fold.loop on it.
The first one is Failure(1).

Currently, loop will iterate over all 3 elements. With no breakpoints.
But, Failure(1) is a roadblock for any other logic. We should not iterate over other values.

We need to think about best solutions here.
Criteria:

  • It should ideally work with any FailableN
  • It should be similar to loop in semantics
  • It should be possible to use loop or loop_lazily on the same functions / helpers. In other words, it should be easy to switch from one to another
  • It should be faster than loop

Ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions