åã¯ä»ãããã°ã©ãã¼ã¨ãã¦ã®å¹¸ç¦æã«æºãããã¦ãããé 延è©ä¾¡ãç¿å¾ã§ããã¨æããããã ã é 延è©ä¾¡ ãªãé¢æ°ããã°ã©ãã³ã°ã¯éè¦ãã«ã¯ãé 延è©ä¾¡ã®å©ç¹ã以ä¸ã®ããã«èª¬æãã¦ããã åæ¢æ¡ä»¶ã¯ã«ã¼ãã®æ¬ä½ã¨ã¯åé¢ããã¨ãã§ããå¼·åãªã¢ã¸ã¥ã¼ã«åãå¯è½ã¨ãªãã ä¾ã¨ãã¦è¼ã£ã¦ããããã¥ã¼ãã³-ã©ãã½ã³æ³ã«ããå¹³æ¹æ ¹ãã¯ãè¥å¹²é£ããã®ã§ãç°¡åãªå¥ä¾ã示ãããHaskell ã«ã¯ã第ä¸å¼æ°ã®æ°ã ãã第äºå¼æ°ãç¹°ãè¿ãé¢æ° replicate ãããã > replicate 3 'a' â "aaa" ãããæ®éã«å®è£ ããã¨ãããªãã replicate 0 c = [] replicate n c = c : replicate (n-1) c Haskell 以å¤ã§å®è£ ããå ´åããã£ã¨ã«ã¼ãã使ãã ããããã ãããã§ã¯å帰ãã«ã¼ããã¯åé¡ã§ã¯ãªãã åé¡ã¯ããçµæãä½ãä»äºãã¨ãçµäºæ¡ä»¶ãå¤æ
{{#tags}}- {{label}}
{{/tags}}