ãããã試è¡é¯èª¤ããã¦ã㦠JavaScript ã®é¢æ°ãä½ã£ã¦å¼ã³åºãã®ã¨ Haskell ã®ããã¨ã®æ±ºå®çãªéããè¦ã¤ããã ããã¯ããã¶ããã®ãã£ããåç´ã§å½ããåãªãã¨ã ãã©ããããåãã£ãã¨ããã«åã®å¨ãã®ãã¼ã¹ãä¸æ°ã«ç¹ãã£ãã®ã§ãæ¥ããã®ãã§æ¸ãã åã¯ä»¥ä¸ã®ããã«è³å å¤æãã¦ã㦠Haskell a = 1 iszero i = if (i == 0) then True else False Javascript a = function() { return 1 } iszero = function(i) { return i()/*è©ä¾¡ã¯é¢æ°å¼åºã*/ == 0 ? True : False } // True False ã¯ãã True = function() { return true } False = function() { return false
{{#tags}}- {{label}}
{{/tags}}