Y
Hacker News
new
|
ask
|
show
|
jobs
by
kejadlen
5578 days ago
By default, inject uses the first element of the array as the argument, so it would use nil on an empty list. It optionally takes an argument to kick off the process.