Java 8 ã§ã¯ JSR 335: Lambda Expressions ãåãå ¥ãããã¾ãã ããã使ã㨠Pure Java ã§ãããªãããã©ãè¦ã¦ã Scalaãã¨ããã³ã¼ããæ¸ããããã«ãªãã¾ãã 主ã«ç§ãã¡ã³ããã³ã¹ãã¦ãã ScalaFlavor4J ã¨ããã©ã¤ãã©ãªãããã¾ãã https://github.com/m3dev/scalaflavor4j Java 7 ã¾ã§ã¯ãããªæãã§ä½¿ãå¿ è¦ãããã¾ããã Seq.apply(1, 2, 3, 4, 5).filter(new F1<Integer, Boolean>() { public Boolean apply(Integer i) { return i > 2; } }); // -> Seq.apply(3, 4, 5) ããããJava 8 ã§ã¯ãããªã«ã·ã³ãã«ã«æ¸ãã¦ãã¾ãã¾ãã Seq.apply(1,
{{#tags}}- {{label}}
{{/tags}}