$_='known';.say for [X](($_,"un$_")xx 2)X~'s'
それを試してみてください
拡大
$_ = 'known';
.say # print with trailing newline the value in topic variable 「$_」
for # do that for each of the following
[X](
($_, "un$_") # ('known','unknown')
xx 2 # list repeated twice
) X~ 's' # cross using &infix:«~» with 's' (adds 「s」 to the end)
[X](…)
一部は生成します
(("known","known"),("known","unknown"),("unknown","known"),("unknown","unknown")).Seq
次に、それを使用X~
して、内部リストをStrに強制します(&infix:«~»
演算子のため)。これにより、値の間にスペースが追加されます。
("known known", "known unknown", "unknown known", "unknown unknown").Seq
次に、それぞれが s
("known knowns", "known unknowns", "unknown knowns", "unknown unknowns").Seq