æãã¨ããããã ã¯ã¦ãªãã¤ã¤ãªã¼ã«ç§»è¡ãã¾ããã ãã®blogã追ãããã¦ããæ¹ãã©ã®ãããããã£ãããã®ãåããã¾ãããããè¿·æãããããããã¾ãã ååã®ç¶ãã§ããErlangã§Pythonã®generatorã¿ãããªã®ã使ããã¨ã©ããªãã ããã¨æãå®é¨ãã¦ã¿ã¾ãããã¨ãã£ã¦ããã¸ã§ãã¬ã¼ã¿ã®æ¬æ¥ã®åãã模å£ããã®ã¯å¤§å¤ãããªã®ã§ãããã»ã¹ãåãã¦ã¡ãã»ã¼ã¸ã®ããã¨ãããã¦ããã ãã§ãã -module(generator). -export([yield/2, next/1, send/2, create/3, create/1]). -export([all/1, foreach/2]). -export([xrange/3, xrange/4]). wait(Pid) -> receive {Pid, next} -> none; {Pid, send, Args} -> Ar
{{#tags}}- {{label}}
{{/tags}}