Apply a function to each value in the list in turn.
277278279280281282283284285286287
collect = collect + ((Resource) n).getLocalName(); } } final MyApply f = new MyApply(); root.apply(f); Assert.assertEquals( "Result of apply should be concatentation of local names", "abcde", f.collect);