JuliaLang/julia

implement String(::Base.Generator)

Open

#57,072 opened on Jan 16, 2025

View on GitHub
 (10 comments) (2 reactions) (0 assignees)Julia (48,709 stars) (5,773 forks)batch import
good first issuehelp wantedstrings

Description

I was hoping that this would work:

String(Iterators.map(c->c+1, "Hello, world"))

Instead it's a method error. We should allow the String constructor to take a generator argument.

Contributor guide