Does anyone know if there is a builtin function for reading from the console likewise to the printfn function?
The only method I’ve seen so far is using System.Console.Read() but it doesn’t feel as functional as using a construct like printfn is.
Does anyone know if there is a builtin function for reading from the console
Share
It is indeed a shame that there is no such built-in function. However, as Brian mentioned in a comment on Benjol’s answer, it is possible to build a
scanffunction yourself. Here’s a quick sketch of how one might define asscanfvariant, although only%splaceholders are implemented: