JuliaLang/julia

implement String(::Base.Generator)

Aperta

#57.072 aperta il 16 gen 2025

 (10 commenti) (2 reazioni) (0 assegnatari)Julia (5773 fork)batch import
good first issuehelp wantedstrings

Metriche repository

Star
 (48.709 stelle)
Metriche merge PR
 (Merge medio 20g 6h) (157 PR mergiate in 30 g)

Descrizione

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.

Guida contributor