ããã¯ä½ï¼ ECMA262 6th以éã«ã¯iteration protocolsï¼ã¨å¼ã¶ã¹ããã®ï¼ãå°å ¥ããã¦ãããã¨ããã®ã¯çãããã¡ãããåç¥ã®ã¨ããã ã¨æãã¾ããããã使ã£ã¦Iterator<T>.next()ãå¼ã°ããã¾ã§map()ãªã©ãå®è¡ããªãï¼lazy evaluationããï¼Iteratorãä½ã£ã¦ã¿ããã¨ãã話ã§ããRustã®std::iter::Iteratorã¨ãC#ã®LINQã¨ããä¼¼ããããªæåããã¾ãããã ä»å¾ã巨大ãªãªãã¸ã§ã¯ãããªã¹ãã«å¯¾ãã¦ã®Iteratorãæä¾ã»åºç¾ããå ´åãæ¯åã®ããã«å³æè©ä¾¡ã§for-ofãããArray.from()ãããªã©ã¯ç¾å®çã§ã¯ãªãã§ãããã以ä¸ã®ããã«æ¸ããã¨ãåºæ¥ã¾ããã /** * @template T, U * @param {Iterable<T>} src * @param {function(T):U}
{{#tags}}- {{label}}
{{/tags}}