- all values are promises
- all promises are dereferenced by calling a function on them
- eg, in the code below:
- list is technically a promise of a list of strings
- the strings were initially promises by they we’re dereferenced by the list operator, then by the let assignment
- results is really a list promise of HttpResult promises
List.head
returns a promise which waits for results
to be resolved.
- etc etc
let list : List<String> = ["https://...", ...]
let results : List<HttpResult> = List.map HttpClient.get list
(List.head results)!.body