I have a little problem with my code that i wrote it's for reading input from console in F# as sequence of lines. My problem is that it read only 5 lines of text and then end but it should read more lines. Would be nice if someone told me what is wrong whit this code.
let allList = new List<string>()
let rec readlines () = seq {
let line = Console.ReadLine()
let b = allList.Add(line)
if line <> null then
yield line
yield! readlines ()
}
let b = readlines()
printf "%A" b