data structures - lists in structs in F#? -
I'm very new to F # and I'm trying to create a straightforward stack of polygons, and In this list of coordinates:
type polygon = struct val cord: list new (list_of_Coords) = {end = list_of_Coords} termination
but say visual studio "Type 'Microsoft. FSHRP Colections.List.LT; _>' 1 kind of argument (rationality) is expected In which 0 "
has been I do not think like that I have no intention of starting the list structure just announced it.
see
for answers.
(Repeat here:
You need to specify the list type, such as list & lt; float>.
type polygon = Struct val COORDS: LIST & lt; float & gt; new (list_of_Coords) = {Coords = list_of_Coords} end
)
Comments
Post a Comment