How do I “flatten” a list of lists in perl 6?

后端 未结 4 2089
鱼传尺愫
鱼传尺愫 2020-12-09 19:11

Let\'s say I want all permutations of 2 letters out of a, b and c.

I can do:

my @perm = .combinations(2)».permutations;
say @perm;
# [((         


        
4条回答
提交回复
热议问题