![]() |
![]() |
|
home—info—lectures—exams—archive
(filter (lambda (f) (not are-friends(X,f))) (user-friends Ian)) |
Set soFar = new HashSet(); for ( User f : ian.getFriends() ) { if (f.isFriendOf(X)) { soFar.add(f); } } return soFar; |
(filter (lambda (f) (and (not (empty? (intersect (user-groups f) (user-groups X)))) (not (are-friends f X))) (user-friends ian)) |
Set findPertinentFriends( User X ) { Set soFar = new HashSet(); for ( User f : ian.getFriends() ) { if (!f.getGroups().intersect( g.getGroups ).isEmpty() && !f.isFriend(X)) { soFar.add(f); } } return soFar; } ... ian.findPertinentFriends(X) |
home—info—lectures—exams—archive
©2008, Ian Barland, Radford University Last modified 2008.Oct.10 (Fri) |
Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |
![]() |