Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With Enumerable.java you can use Guava like this (+ static imports):

    List<String> strings = transform(list("hello", "world"), 
        function(s, s.toUpperCase()));
    assertEquals(list("HELLO", "WORLD"), strings);
https://github.com/hraberg/enumerable


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: