Something like the first code snippet here: turing.thegamma.net/markets/ ? The type of "scrapeDatedLists" is value-dependent. Based on the value, it generates types with members you use to construct the query. The type checker (used also by auto complete) forces the evaluation of the argument.
2 likes 2 replies
?