- 
                Notifications
    
You must be signed in to change notification settings  - Fork 20
 
Open
Description
From the Bifunctor, it seems a Promise has two states:
- Error value
 - Successful value
 
I would like to "run" a Promise and act on each state:
/* forall x. */ Promise.of(x).fold(a => false, b => true) == true
/* forall x. */ reject(x).fold(a => true, b => false) == true
never.fold(a => true, b => true) == undefinedMetadata
Metadata
Assignees
Labels
No labels