ãã®è¨äºã¯ãã¯ã¦ãªã¨ã³ã¸ã㢠Advent Calendar 2024 - Hatena Developer Blogãã®44æ¥ç®ã®è¨äºã§ãã JavaScript ã Scala ãªã©ã§é åããªã¹ããå¦çããã¨ãã¡ã½ãããã§ã¼ã³ã使ã£ã¦æ¸ããã¨ãå¤ããä¾ãã°æ¬¡ã®ã³ã¼ã㯠JavaScript ã®ã³ã¼ãã§ããã type thing = { count: number; name: string; }; const somethings: thing[] = ...; somethings .filter(x => x.count > 10) .sort((a, b) => a.count - b.count) .map(x => x.name) Method chaining - Wikipedia ããå¼ç¨ãã¦å çã ãã®ã³ã¼ãã«ãã㦠map ãè¡ãåã®å¤æã«æ³¨ç®ãã¦ã»ããã thi
{{#tags}}- {{label}}
{{/tags}}