1) yes : (**) as in

1
let square x = x ** 2.0

(note, this operator only works with floats)

2) not and <> work as in

1
if not true then print_string "not true" else print_string "true"

the (<>) operator is for "not equal" though, not simply "not"... That is, you can write

1
if x <> true

but not if <> x (which would expect a second argument)

3) you mean System.Int32.Convert ... ? You can use the shortcut functions (which are basically the name of the type it attempts to convert to) as int, float, ... as in

1
let x = 5.0 in print_int (int x)

etc.

Hope this helps.

By on 1/3/2008 1:04 PM ()

Thanks a lot. Info about F#is extremely sparse right now. I continue forth...

By on 1/3/2008 3:04 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