Skip to content

Loop x times #2792

Description

@pbbob

It would be nice to be able to do this:

let count = 15;
loop count {
    println!("{}", count);
}

would loop 15 times.

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

    A-control-flowProposals relating to control flow.A-expressionsTerm language related proposals & ideasA-syntaxSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions