ãã£ã¨ãã¢ããã®åãå¼ãåºãããã¯ãªããï¼ ãï¼ã¢ã¯ã·ã§ã³ã®åå¾ã§åãå¤ãããï¼ãããããããã¢ããã¯èªå·±é¢æã®åä¸ã®åãªãã¢ãã¤ãã ãããããªãã¨ãã§ãâ¦ãâ¦ï¼ï¼ãã£ãã§ããã®â¦ãã¸ã§â¦ï¼ ã§ããããããHaskellãªããã {-# LANGUAGE QuasiQuotes #-} import Control.Monad.Indexed.State import Control.Monad.Indexed import Language.Haskell.IndexedDo hoge :: IxState Int [Int] () hoge = [ido|do imodify (*10) imodify show imodify reverse imodify (++"123") imodify $ map fromEnum |] *ghci> runIxState hoge 42 (
{{#tags}}- {{label}}
{{/tags}}