Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@ichirin2501

Perl ワンライナーで直積

More than 5 years have passed since last update.

小規模な直積集合を求めたいときとか。
Perl 5.14.2
他のversionでも動くかどうかはちょっとわからないです(笑)

[@ichirin ~]$ perl -e '@a = @{[<{a,b,c}{1,2}{A,B,C,D}>]}; print"@a\n"'
a1A a1B a1C a1D a2A a2B a2C a2D b1A b1B b1C b1D b2A b2B b2C b2D c1A c1B c1C c1D c2A c2B c2C c2D
0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ichirin2501
何を投稿するか方向性が見えない

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?