JuliaLang/julia

implement String(::Base.Generator)

Open

#57,072 opened on 2025年1月16日

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

説明

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.

コントリビューターガイド