ãã®æ稿ã¯ãHaskell Advent Calendar 2019 ã®4æ¥ç®ã®è¨äºã§ããSTã¢ããã®ä»çµã¿ã«ã¤ãã¦æ¸ãã¾ãããåä¸ç´è
åãã®å
容ã¨ãªã£ã¦ãã¾ãã ã¯ããã« STã¢ããã¨ã¯ STã¢ããã®å STã¢ããã®ä½¿ç¨ä¾ STã¢ããã§ä½¿ç¨ããããã¼ã¿åã¨å種é¢æ° Data.STRef newSTRef modifySTRef readSTRef runST å¤æ´å¯è½ãªåç
§ãå¤ã¸æã¡åºããã¨ãã㨠ã¨ã©ã¼ã¡ãã»ã¼ã¸ããèå¯ãã forallã®æ¢æ± éååã¯åã«éçãªæå³ãæããã éååãé¢æ°ã®å
å´ã§å®ç¾©ãã ã©ã³ã¯Nå¤ç¸ã®æ¦è¦ã¨ç¹å¾´ ã©ã³ã¯Nå¤ç¸ã®æ¦è¦ ç¹å¾´ãã®1: åæ¨è«ã®å¶éãç·©å ç¹å¾´ãã®2: ã¹ã³ã¼ãå
ã§ã®åã®æç¸ forallã®æ¢æ±ã¯ããã§çµãã STã¢ããã®ããªã㯠newSTRefã®çµæåã®æå³ runSTã®å¼æ°ã®åã®æå³ ãããã« è¨æ£å
容ï¼2019/12/06ï¼ åè
{{#tags}}- {{label}}
{{/tags}}