Skip to content

用zig的for作为表达式,实现reduce的功能? #135

Answered by jiacai2050
4IK1d asked this question in 新手提问
Discussion options

You must be logged in to vote

原来你是这个意思。

但觉得不是个好设计,你觉得栗子还比较简单,如果是个string,那你怎么处理?没有地方传 allocator 了,缺少一个 context。

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@4IK1d
Comment options

@jiacai2050
Comment options

Answer selected by 4IK1d
@zhang-chuanfeng
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants