ã¯ããã« ãã®è¨äºã¯ ScalaMatsuri 2023 ã§çºè¡¨ãããã»ãã·ã§ã³ãtraverseãå¶ããè ã¯ã³ã¼ããå¶ããã®è£å®è¨äºã§ããã»ãã·ã§ã³æéã®é½åä¸ã«ãããã traverse ã®å®è£ é¢ãç¦ç¹ã«è§£èª¬ãã¾ãã traverse ãã©ããã£ãã·ã¼ã³ã§å½¹ã«ç«ã¤ã®ãçã¯æ¬ã»ãã·ã§ã³ããåç §ãã ããã 使ç¨ããè¨èªã»ã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ã¯ä»¥ä¸ã®éãã§ãã Scala 3.2.2 cats 2.7.0 æ§é ãä¿ã£ãã¾ã¾è¦ç´ ã«é¢æ°ãé©ç¨ãã ã㦠traverse ã¨ã¯ã©ããªé¢æ°ãªã®ãã¨è¨ãã¨ãæ§é ãä¿ã£ãã¾ã¾è¦ç´ ã«é¢æ°ãé©ç¨ããé¢æ°ã§ãã ããèãã¨æè¿ã®ã¡ã¸ã£ã¼ãªè¨èªã«ã¯ããããåå¨ãã¦ãã map ã®äºãæãæµ®ãã¹ãæ¹ãå± ãäºã§ãããã ãã®éã map ãæ§é ãä¿ã£ãã¾ã¾è¦ç´ ã«é¢æ°ãé©ç¨ããé¢æ°ã¨è¨ãã¾ãã val list = List(1, 2, 3, 4, 5) list.
{{#tags}}- {{label}}
{{/tags}}