ããã¨ä¾¿å©ã§ããããã¨ãããã¨ã§æ¸ãã¦ã¿ãã ããããã³ã¼ãã£ã³ã°ãã¿ã¼ã³ã«ã¯ yield ã¨ã使ã£ã¦ãªãã§ãã ãã£ã¡ã®æ¹ãããããããã§ããï¼ Select å ¨ã¦ã®è¦ç´ ã«ä½ããã®å¦çãè¡ãããã¨ãã«ä½¿ç¨ãã¾ãã // ããããã³ã¼ãã£ã³ã°ãã¿ã¼ã³ãã®1 // å ¨ã¦ã®è¦ç´ ã2åããã¡ã½ãã public IEnumerable<int> DoubleAll(int[] target) { var result = new int[target.Length]; for (int i = 0; i < target.Length; i++) { result[i] = target[i] * 2; } return result; } // Selectã§æ¸ãç´ã public IEnumerable<int> DoubleAll(IEnumerable<int> target) { re
{{#tags}}- {{label}}
{{/tags}}