I am copying this code out of a book on F#. The compiler is supposed to create a generic function.
Instead, I am getting an error
"FS0039: The value or constructor 'List' is not defined."
Why?
let createList(first, second) =
let output = List()
output.Add(first)
output.Add(second)
output
// expected output below
// val createList : first:'a * second:'a -> List<'a>