I'm trying to make a recursive function in F# and am really new in F# and functional programming so this is probably basic stuff.
let rec groupTheResults (htmlNodes : seq<HtmlNode>, resultList: List<HtmlNodeGroup>) :List<HtmlNodeGroup> =
if Seq.length htmlNodes > 0 then
let listThing = Seq.take 2 htmlNodes
[]
else []
If I remove let listThing = Seq.take 2 htmlNodes then the compiler is all happy. Am I doing something illegal or what?
letline in? - JaredPar[]is aligned with theifinstead of with thelet- JaredPar#indent "off"- possibly it is hanging around from somewhere - John Palmer