1. ãªã¹ããæä½ããé¢æ°ã§éè¦ãªã®ã¯ã©ãï¼ ãªã¹ãå
å
表è¨ã¯æ
£ããã使ãããã Python ã®ãªã¹ãå
å
表è¨ã«åºä¼ã£ã¦ 4 ã¶æãçµã£ãã ãPython ã®ãªã¹ãå
å
表è¨ããèªã¿ãªããã¦ã¿ãã¨ã ⦠åããæ°å¤ã®ãªã¹ããããç¹å®ã®æ¡ä»¶ã«åãè¦ç´ ãæ½åºããã print [x for x in [1,2,3,4,5] if x > 3] ããã¾ãèªã¿ã«ããã (@_@;) ã¨æ¸ãã¦ããããã©ãä»ã§ã¯ãã·ã³ãã«ã§èªã¿ããããã¾ãæ¸ãããããã¨æãããæ
£ãã¨ã¯æãããã ^^; (ãªã¹ãå
å
表è¨ããã¹ããã¦ããããã¨ãããã«ç解åºæ¥ãªãããã©ã) Ruby ã® Enumerable ã¢ã¸ã¥ã¼ã«ã«ã¯ããããã®ã¡ã½ãããå®ç¾©ããã¦ãã Java ããç¥ããªãã£ãé ãRuby ã® é
åã«å®ç¾©ããã¦ããã¡ã½ãããè¦ã¦ãã便å©ãªã¡ã½ããããããããããªããã¨æã£ããRuby ã®é
åã¯ãEnumera
{{#tags}}- {{label}}
{{/tags}}