ãã®è¨äºã¯Elm Advent Calendar 2016 ã®4æ¥ç®ã§ãã ä¼ç¤¾ã§æ¸ããã¦ããã£ã¦ãElm製ã¢ããªã10000è¡ãè¶ ããã®ã§ãç¾æç¹ã§å人çã«ããã¯ã¨æããã¹ããã©ã¯ãã£ã¹ãå®éã®ã½ã¼ã¹ä»ãã§æ¸ãã¦ã¿ãã github.com ï¼ã¢ããªã«ã¤ãã¦ã®æ å ±ã¯æ©ä¼ãããã°ï¼ 1.å¿ ãã¹ã¿ã¤ã«ã¬ã¤ãã«å¾ã è¡æ°ãå¢ããå¾åã«ããããããªãèªã¿ããããªãã®ã§çµ¶å¯¾ã«å¾ã£ãæ¹ãè¯ãã Style Guide é¢é£ã³ããã ï¼let...inä¸ã«ç©ºè¡ãæ¿å ¥ãã¦ããï¼ 2.ãã¼ã¿æ§é ã«ã¿ãã«ã使ããªã ä¾ãã°ãã¦ã¹ã®ä½ç½®ãªã©ãã¿ãã«ã§(Int, Int)ã®ããã«æ¸ããããªãããããå¾æããã®ã§ãããæ¹ãè¯ãã -- å¾®å¦ calculateX : Model -> Int calculateX model = let (x, y) = model.position in max 0 x --
{{#tags}}- {{label}}
{{/tags}}