Use a tuple of arguments:

1
2
3
4
 

form.Paint.Add (fun e -> e.Graphics.DrawLine(pen,0,0,x,y))

This is the way .NET OO methods are presented. Typically only libaries authored in F# use "curried" argument application (i.e. where the arguments are separated by spaces, and where the first argument returns a residual function awaiting the second arguments etc.)

Don

By on 9/28/2006 4:32 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper