Skip to content

Making str * int multiply the string #2

@Toma400

Description

@Toma400

Just as in Python sugar syntax, it'd allow us for equivalent of this proc:

proc `*`* (s: string, i: SomeInteger): string =
  for _ in 1..i:
    result.add(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaNew feature idea

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions