I am having problems calling a function from within a sequence construct. Apparently, the function is being called so lazily that the overall code does not produce the intended result. Here is the code:
mylist
|> fun myseq ->
seq { for b in mylist do yield { b with status = (getStatus b)}}
Here, mylist is a list of records. I intent to build a sequence out of it with the field status updated from the function getStatus. It simply does not work, the function does not appear to run for each iteration of the for loop as expected.
Appreciate any help.