1
2
3
4
5
6
7
8
9
10
 
type foo =
  val x : int
  val y : int

  new(foo:int) =
    let tmp = foo + 1
    { x = tmp
      y = tmp * 3
    }

You can replace ints with whatever type you want.

By on 5/5/2009 12:57 PM ()

Nice. Solved.

By on 5/6/2009 1:27 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