JuliaLang/julia

implement String(::Base.Generator)

Open

#57,072 opened on Jan 16, 2025

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

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

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