Skip to content

Add support for for-loops #2

Description

@HenrikBengtsson

Add support to inject progress updates in for loops. For reasons explained in HenrikBengtsson/Wishlist-for-R#179, it's impossible to support:

for (x in xs) {
  sqrt(x)
} |> progressify()

but should be able to support:

( for (x in xs) {
  sqrt(x)
} ) |> progressify()

and

{ for (x in xs) {
  sqrt(x)
} } |> progressify()

We can also support it without pipes;

progressify(for (x in xs) {
  sqrt(x)
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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