F#, FParsec, and Calling a Stream Parser Recursively, Second Take

后端 未结 2 1477
后悔当初
后悔当初 2021-01-24 15:04

Thank you for the replies to my first post and my second post on this project. This question is basically the same question as the first, but with my code updated according to t

2条回答
  •  梦谈多话
    2021-01-24 15:46

    I can help with one of the errors.

    F# generally binds arguments left to right, so you need to use either parentheses around the recursive calls to pContent or a pipe-backward operator <| to show that you want to evaluate the recursive call and bind the return value.

    It's also worth noting that <| is the same as your $ operator.

    Content.Post is not a constructor for a Post object. You need a function to accept a Post list and return a Post. (Does something from the List module do what you need?)

提交回复
热议问题