Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F# Constructor

Tags:

f#

How do I do things in a constructor in F#? I cant quite figure it out...

like image 543
RCIX Avatar asked Jun 12 '09 01:06

RCIX


1 Answers

I would check out Constructors (F#):

Objects of class types have constructors. There are two kinds of constructors. One is the primary constructor, whose parameters appear in parentheses just after the type name. You specify other, optional additional constructors by using the new keyword. Any such additional constructors must call the primary constructor.

like image 106
Andrew Hare Avatar answered Oct 01 '22 22:10

Andrew Hare