到目前为止,我的情况是这样的,但似乎行不通:
let tri_seq = 1.0 |> Seq.unfold (fun x -> match x withlet tri_seq = 1.0 |> Seq.unfold (fun x -> Some (0.5 * x * (x + 1.0),x + 1.0))
(n / 2) do if n % i = 0 then yield i }let listFactorsOf n =2 |> List.unfold (fun state -> if state % 2 = 0 thenelse我的另一次尝试使用了匹配的概念,我对此几乎完全不熟悉:
let listFactorsOf_
/hs-unfold.min.js"></script> $(document).on('ready', function () { // =======================================================
var unfold = new HSUnfold(&