JuliaLang/julia

implement String(::Base.Generator)

Open

#57,072 建立於 2025年1月16日

在 GitHub 查看
 (10 留言) (2 反應) (0 負責人)Julia (48,709 star) (5,773 fork)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.

貢獻者指南

implement String(::Base.Generator) · JuliaLang/julia#57072 | Good First Issue