let s a=

match a with

|_->printf "asdf"

printf "asdf"

why it thorw a error:

This expression was expected to have type

'a -> 'b -> 'c

but here has type

unit

how i can execute multiple statement ?

thanks..

By on 6/13/2010 3:44 AM ()

let s a=

match a with

|_->printfn "asdf";

printfn "asdf"

it runing well

By on 6/13/2010 4:30 AM ()
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