JavaX now has list comprehensions!
// make a list
L<S> list = splitAtSpace("hello world !");
// filter it
list = [S s in list | isIdentifier(s)];
// check result!
assertEquals("hello world", join(" ", list));
There you go! :-)
// make a list
L<S> list = splitAtSpace("hello world !");
// filter it
list = [S s in list | isIdentifier(s)];
// check result!
assertEquals("hello world", join(" ", list));
There you go! :-)