IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
id:amachangãããé 延è©ä¾¡ã¨ãã§ãããããã£ã¦ããã®ãè¦ã¦ï¼ã¤ããã£ã¨ãªã£ã¦ãã£ã¦ãã¾ã£ãã å°ãé·ããã©ï¼ããããã«ãã£ããããæ°åãHaskell風㫠cons(0, cons(1, zipWith(add, fib, cdr(fib))))ã¨æ¸ãããã£ãã 以ä¸ãå®è£ ã function Cons (car, cdr) { if (car == null || cdr == null) { throw "illegal object."; } this.car = car; this.cdr = cdr; } function Action (act) { if (act == null) { throw "illegal object."; } this.action = act; } function Thunk (any) { if (any instanceof T
ãããã試è¡é¯èª¤ããã¦ã㦠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
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}