Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eyelidlessness
on Oct 1, 2021
|
parent
|
context
|
favorite
| on:
Abstraction, intuition, and the “monad tutorial fa...
What’s interesting is this seems to say the exact opposite of what the other direct response says. But I also don’t think this is exactly true.
Promise.resolve( Promise.resolve('foo') )
At runtime is Promise<Promise<string>>. It only collapses when chained to then (or await’ed), just as in the sibling comment’s flatMap example.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: