| Set :: Infinite. SET :: Infinite Perl ¸ðµâ¿¡´Â °£°Ý ¼¼Æ®°¡ ÀÖ½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Set :: Infinite. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Flavio Soibelmann Glock
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~fglock/DateTime-Event-Random-0.03/lib/DateTime/Event/Random.pm
Set :: Infinite. ű×
Set :: Infinite. ¼³¸í
SET :: Infinite Perl ¸ðµâ¿¡´Â °£°Ý ¼¼Æ®°¡ µé¾î ÀÖ½À´Ï´Ù. SET :: Infinite Perl ¸ðµâÀº °£°Ý ¼¼Æ®¸¦ Æ÷ÇÔÇÕ´Ï´Ù. ½Ä ³ëÇÁ ½º »ç¿ë Set :: Infinite; $ set = set :: Infinite-> New (1,2); # $ SET-> UNION (5,6); # , SET :: Infinite´Â Infinite Sets.a ¼¼Æ®¿¡ ´ëÇÑ ¼³Á¤ ÀÌ·Ð ¸ðµâÀÌ °³Ã¼ ¸ðÀ½ÀÔ´Ï´Ù. ¼¼Æ®¿¡ ¼ÓÇÑ °´Ã¼´Â ¸â¹ö ¶Ç´Â "¿ä¼Ò"¶ó°íÇÕ´Ï´Ù. "¿ä¼Ò"¸¦ Çã¿ëÇÕ´Ï´Ù. ½ÇÁ¦, Á¤¼ö ¹× °³Ã¼ (¿¹ : ³¯Â¥)¸¦ Çã¿ëÇÕ´Ï´Ù. ¿ì¸®´Â infinite·Î ¼³Á¤À» Çã¿ëÇÕ´Ï´Ù. °èÁ¤Àº ¾ø½À´Ï´Ù. ¿ä¼ÒÀÇ ¼ø¼. ¿¹¸¦ µé¾î, {1,2} = {2,1}. ¿ä¼ÒÀÇ ¹Ýº¹Àº ¾Æ¹«·± °èÁ¤ÀÌ ¾ø½À´Ï´Ù. ¿¹¸¦ µé¾î, {1,2,2} = {1,1,1,2} = {1,1,1,2} = {1,2} .ConstructornewCreates »õ·Î¿î ¼¼Æ® ¿ÀºêÁ§Æ® : $ set = set :: Infinite-> new; # ºó ¼¼Æ® $ set = set :: Infinite-> new (10); # ´ÜÀÏ ¿ä¼Ò $ set = set :: Infinite-> new (10, 20); # ´ÜÀÏ ¹üÀ§ $ set = set :: Infinite-> New (, ); # 2 rangesempty $ set = set :: Infinite-> new; ´ÜÀÏ ¿ä¼Ò·Î ¼³Á¤ $ set = set :: Infinite-> new (10); $ set = set :: Infinite-> new (); ´ÜÀÏ ½ºÆÒ·Î ¼³Á¤ $ set = set :: Infinite-> new (10, 20); $ set = set :: Infinite-> New (); # 1010, open_begin => 0, b => 20, open_end => 1,}); # 10 »õ·Î¿î (10, 20, 100, 200); $ set = set :: Infinite-> new (, ); $ set = set :: Infinite-> new ({a => 10, open_begin => 0, b => 20, open_end => 0,}, {a => 100, open_begin => 0), b => 200, open_end => 0,}); new () ¸Þ¼µå´Â Á¤·Ä µÈ ¸Å°³ º¯¼ö¸¦ ±â´ëÇÕ´Ï´Ù. Á¤·ÄµÇÁö ¾ÊÀº ¹üÀ§°¡ÀÖ´Â °æ¿ì @ranges = (, )¸¦ »ç¿ëÇÏ¿© ¼³Á¤À» ºôµå ÇÒ ¼ö ÀÖ½À´Ï´Ù. $ set = set :: Infinite-> new; @ set = $ set-> @rangesÀÇ À¯´Ï¿Â (@ $ _); »õ·Î¿î °ÍÀ¸·Î Àü´Þ µÈ µ¥ÀÌÅÍ ±¸Á¶´Â ºÒº¯ÇؾßÇÕ´Ï´Ù. ±×·¡¼ ÀÌ°ÍÀº ÁÁÀº ¿¬½ÀÀÌ ¾Æ´Õ´Ï´Ù : $ set = set :: Infinite-> new ($ object_a, $ object_b); $ object_a-> set_value (10); ÀÌ°ÍÀº ±×°ÍÀ» ÇÒ ¼öÀÖ´Â ±ÇÀåµÇ´Â ¹æ¹ýÀÔ´Ï´Ù : $ set = set :: Infinite-> new ($ object_a-> clone, $ object_b-> º¹Á¦); $ object_a-> set_value (10); »õ ¿ÀºêÁ§Æ®¸¦ º¹Á¦ / º¹Á¦ÇÏ°í °´Ã¼ data.Empty_setCreates ºó set.If¸¦ º¹»çÇÕ´Ï´Ù. ±âÁ¸ ¼¼Æ®¿¡¼ ºó ¼¼Æ®´Â "À¯Çü"¹× "¹Ðµµ"Ư¼ºÀ» »ó¼Ó¹Þ½À´Ï´Ù. Universal_setCreates a "¸ðµç"°¡´ÉÇÑ ¿ä¼Ò°¡ Æ÷ÇÔ µÈ ¼³Á¤µÈ ¼³Á¤Àº ±âÁ¸ ¼¼Æ®¿¡¼ È£ÃâµÇ¸é ¹ü¿ë ¼¼Æ®´Â "À¯Çü"¹× "¹Ðµµ"Ư¼ºÀ» »ó¼ÓÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
Set :: Infinite. °ü·Ã ¼ÒÇÁÆ®¿þ¾î