News for hackers. Stuff that matters.
Re:Everything that's wrong with Java in a single class by pwim on Friday September 21, 2012 @05:17AM (#4552949)
student.tests.inject(false) {|acc, test| acc || (!test.taken? )}

can be reduced even further using the all? method

!student.tests.all?(&:taken?)

There are no comments on this comment yet.