| List :: Pairwise ¸ñ·Ï :: Pairwise´ÂÁöµµ / grep ¾î·¹ÀÌ°¡ÀÖ´Â Perl ¸ðµâÀ̸ç Çؽà ¹æÇâÀ¸·Î Çؽø¦ ÇØÁ¦ÇÕ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
List :: Pairwise ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Thomas Drugeon
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~tdrugeon/List-Pairwise-0.27/lib/List/Pairwise.pod
List :: Pairwise ű×
List :: Pairwise ¼³¸í
List :: Pairwise´ÂÁöµµ / grep ¾î·¹ÀÌ°¡ÀÖ´Â Perl ¸ðµâÀ̸ç Çؽà ¹æÇâÀ¸·Î Çؽà ¹æÇâÀ¸·Î ÀÌ·ç¾îÁý´Ï´Ù. list :: pairwise´ÂÁöµµ / grep ¹è¿ ¹× Çؽà Æä¾î¸®·Î µÈ perl ¸ðµâÀÔ´Ï´Ù. ½Ä ³ëÇÁ°¡ ¸ñ·Ï :: pairwise qw (: ¸ðµÎ); ³» % a = (snoogy1 => 4, snoogy2 => 2, not => 4, snoogy3 => 5, hehe => 12); # Å° / °ª ¿¡¹Ä·¹ÀÌ¼Ç (´À¸®°Ô) my @Keys = mapp {$ a} % a; my @values = mapp {$ b} % a; # Reverse Hash (³»ºÎ¿¡¼ ÀÛµ¿ÇÏÁö ¾ÊÀ½) My % Reverse_A = MAPP {$ B, $ a} % a; # @a @a = % A replain Array ½Ö ½Ö; mapp {($ a, $ b) = ($ b, $ a)} @a; # °ªÀ» ¼öÁ¤ÇÕ´Ï´Ù. {$ B ++} % a; # Å° ¼öÁ¤ (³»ºÎ¿¡ ÀÛµ¿ÇÏÁö ¾ÊÀ½) ³» % b = mapp {lc ($ a) => $ b} % a; # grep Çؽà ÇÏÀ§ ÁýÇÕ My % subset1 = grepp {$ a = ~ / snoogy /} % a; ³» % subset2 = ±×·¹ Ææ {$ b <5} % a; # grep ÀϺΠƯÁ¤ °ª my @snoog_values = mapp {$ b} grepp {$ a = ~ / snoogy /} % a; # ÀÌ°ÍÀº ÀÛµ¿ÇÏÁö ¾Ê½À´Ï´Ù : # °ª grepp {$ a = ~ / snoogy /} % a; # value ()Àº ½ÇÁ¦ hashrequirements¸¦ ±â´ëÇÕ´Ï´Ù. ¡¤ Perl ¿ä±¸ »çÇ× : ¡¤ Perl.
List :: Pairwise °ü·Ã ¼ÒÇÁÆ®¿þ¾î