ToDo:
¤½¤Î¾ì¤Ç¼è¤Ã¤Æ¤¿¥á¥â¤À¤±¤ÉÅꤲ¤ë¤Î˺¤ì¤Æ¤¤¤¿¡£
do { hoge ; hage }
¥¢¥¯¥·¥ç¥ó¤È IO ¤ÏÅù²Á¡©
<- ¤Ï IO ¤«¤é¼è¤ê½Ð¤¹¡£ = ¤È¤Î°ã¤¤¡£
[ f x | x <- xs ] -- list comprehension
¤È
do x <- xs return (f x)
¤ÏƱ¤¸¤é¤·¤¤¡£
data [] a = [] | a : ([] a)
Prelude> :t [] [] :: [a] Prelude> :t [1] [1] :: (Num a) => [a]
Prelude> :t "abc" "abc" :: [Char] Prelude> :t ['a','b','c'] ['a','b','c'] :: [Char] Prelude> :t 'a' : [] 'a' : [] :: [Char] Prelude> :t "" "" :: [Char]
Prelude> :help
¤Ï³ç¸Ì¤ò¾Ã¤¹¤¿¤á¡£
¤Ï·¿»ØÄꤷ¤Æ¤ë¤Î¤«
specialization ¤Ï¤·¤Æ¤Ê¤¤¤Î¤Í
parametric polymorphism ¤¬ generics ¤Ç¡¢ ad-hoc polymorphism ¤¬ virtual ¤é¤·¤¤¡¢¤±¤É¡£
Prelude> :t floor floor :: (RealFrac a, Integral b) => a -> b
(01:28)
(02:36)
Á° | 2006ǯ 3·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£