å ç¨ã 1.2.1 ã§ä»¥ä¸ã®ããã«è¿°ã¹ã¾ããã ã¸ã§ããªãã¯ããã°ã©ãã³ã°ã¨ã¯ãã¯ã©ã¹ãåã¨ãã£ãå ·ä½çãªè¦ç´ ãããæ§é ãã¨ããè¦ç´ ãåãåºããããåä½ã§ç©äºããã¾ãæ±ããã¨ããèãæ¹ãæãã¦ãã¾ãã ã§ã¯ã æ§é ã¨ã¯ä½ã§ããããæ°å¦çãªé£ãã話ã¯å²æãã¾ããã 代æ°çãã¼ã¿å(Algebraic Data Types, ADTs) ãç¨ãããã¨ã§å帰ãå«ãè¤éãªãã¼ã¿åã表ç¾ã§ãããã¨ãããã£ã¦ãã¾ãã ããã¦ãå¤ãã®è¨èªã§ã¯ãã®ADTsãè¨èªã¬ãã«ã§ããç¨åº¦ãµãã¼ãããããã®æ©è½ãåãããã¦ããã Scalaãããããè¨èªã®ãã¡ã®ä¸ã¤ã§ã(å¾è¿°ãã Tuple ã sealed trait ãªã©ãããããµãã¼ããã¦ãã¾ã)ã ADTsã¯ã ç´ç©(Product) 㨠ç´å(Coproductã ä½ç©ã¨ã) ããæããã¼ã¿åã®ç·ç§°ã§ãã æ°å¦çãªè©³ç´°ãªèª¬æã¯å²æãã¾ãããç´ç©ã¯è¤æ°ã®ã
{{#tags}}- {{label}}
{{/tags}}