2 ms·
dest = map(square, src) Well, this is okay. Of course, in java, you have to hack it unpleasantly, List dest = map(UtilityMethods.class, "square", src) ...you
by mynameishere 19y ago
dest = map(square, src)
Well, this is okay. Of course, in java, you have to hack it unpleasantly,
List dest = map(UtilityMethods.class, "square", src)
...you have to manually extract the method "square" from UtilityMethods.class and process it over src. One advantage: You can use UtilityMethods as a namespace and swap in different methods thereby.