Created
August 12, 2012 17:27
-
-
Save buzztaiki/3333175 to your computer and use it in GitHub Desktop.
なぜか変換失敗する@Jenova
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Jenova( | |
| @Lambda(name="fn", type=Function.class) | |
| ) | |
| public class Example { | |
| public List<String> transform(List<Integer> l) { | |
| l = Lists.transform(l, new fn<Integer, Integer>() {{ | |
| return _1; | |
| }}); | |
| return Lists.transform(l, new fn<Integer, String>() {{ | |
| return Integer.toString(_1 * 2); | |
| }}); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment