seq.unfold

Seq.unfold explanation in f#

Hi, I am trying to create a sequence lazily by using f#. The sequence is defined as follows: The nth term of the sequence of triangle numbers is given by, tn = ½n(n+1); so the first ten triangle numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... Here is what I have so far but it dosn't seem to work: let tri_seq =...

F#: Why is using a sequence so much slower than using a list in this example

Background: I have a sequence of contiguous, time-stamped data. The data-sequence has holes in it, some large, others just a single missing value. Whenever the hole is just a single missing value, I want to patch the holes using a dummy-value (larger holes will be ignored). I would like to use lazy generation of the patched sequence, an...