Skip to content

Unrecognized loop range type: list of integers (new feature) #334

@fipelle

Description

@fipelle

Hi,

I am trying to use @turbo to loop over a list of integers. Naive implementations such as

@turbo for i in [1,10,15]
    # do something
end

do not seem to work. However, simple workarounds like

ind = [1,10,15];
@turbo for j in eachindex(ind)
    i = ind[j]
    # do something
end

work fine. Is there any chance that similar cases will be handled as in the first example (i.e., naive implementation) in future releases?

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