Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wmeyer
on Jan 2, 2012
|
parent
|
context
|
favorite
| on:
Reducing Code Nesting
BTW, in this case, you don't even need the first two lambda functions. You may just write
let sourceList = [cache.getUser; db.getUser; anonymousUser]
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: