Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pwim
on Sept 21, 2012
|
parent
|
context
|
favorite
| on:
Everything that's wrong with Java in a single clas...
student.tests.inject(false) {|acc, test| acc || (!test.taken? )}
can be reduced even further using the all? method
!student.tests.all?(&:taken?)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
can be reduced even further using the all? method
!student.tests.all?(&:taken?)