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.

贡献者指南